system gmm using xtabond2
Hi I am to trying to run a regression of income inequality on iprs and other control variables.Since my dataset is dynamic panel dataset, I am estimating my equation using xtabond2 command.When i use...
View ArticleYears Life Lost calculation using Stata
I have a cohort and a reference population and would like to calculate the YLL for the cohort. I have information about time of death and causes of death in both groups. Not all fail within the...
View ArticleLogarithm with constant
Hi, I have a variable (income) for many years, i want to generate this variable : "logarithm of income (constant 1986 US$)", i.e taken the income of 1986 as base group. I don't know how to do this in...
View Articleboxplot
Hi, I would like to graph a boxplot from some data I produced through the estimation of different plausible values, applying multiple weights. Basically I cannot use the raw variable for the reason...
View Articleasmprobit reporting multiple positive outcomes per case (although it is not...
Hi Statalisters, I am trying to estimate a multinomial probit model with six outcomes. In order to tackle the IIA issues, I tried to run an asmprobit model using the syntax indicated in the Stata...
View Articlelclogit and lclogitml help
I have been struggling for a long time now to get the significance statistics for my latent class model using STATA and keep getting the following error: lclogitml sp_choice_d is not a 0/1 variable...
View ArticleEnsure the arguments have the right format
Dear All, I am writing a simple Stata program that has a few arguments. But the arguments requires different kinds of inputs. I am writing to see how I can prevent people entering the wrong format. My...
View ArticleHow to calculate?
Hello, I would like to ask if anybody know how to calculate break even point of number of loans in peer to peer lending? How much (number of loans) you should have, to diversified your portfolio. I...
View ArticleHeckman methodology and Cross-sectional data
Hi, I am working on a cross sectional data that is of 3 years. (different observations in each year). I have data on 2005, 2008 & 2011. I am basically tying to generate engel curves with the help...
View ArticleHow can I check if all the values of two variable are the same?
I tried the following, but it does not show me the different values. I need a list of all values that are different in two variables. list cyp CYPTotal if cyp != CYPTotal thanks
View Articleto get panel-robust standard errors
i'm using panel data to get different std. errors from different models (FE or RE). i am using stata, and i am trying to get panel-robust standard errors using vce(cluster id) or vce(robust) i have two...
View ArticleUsing fixed effects in reg3-command (3SLS) but excluding them as instruments...
Dear all, I'm estimating a simultaneous equation system of the following form via 3sls (reg3 in Stata): 1. I(i,t) = CF(i,t) + Q(i,t) + S(i,t) + delta_D(i,t) + delta_CH(i,t) + lag_I(i,t) + i.firm +...
View Articlespmap problem
Hi, I have got a basic problem with spmap. I would like to plot data at county level and representing the states borders. Following the example I divide my data into three datasets with counties and...
View Article-paretofit-: updated version available on SSC
Thanks, as ever, to Kit Baum, the SSC maintainer, a new version of paretofit is available on SSC. Get it in the usual way using ssc install or adoupdate. paretofit uses ML to fit a Pareto (Type I)...
View Articlestset and than stsplit into risk years
Dear List I have a dataset of events, i want to calculate the incidence rates for the event for each life year my observations period is from 1977-2012, and each participant can have the event more...
View ArticleHow to transform the pairwise data into matrix?
Dear all, I now have the pairwise data in hand. I wonder how can I transform it into a matrix? For instance, please see below the sample data. Now I have 8 pairs of inventors in the dta. In total, that...
View ArticleIs there an equivalent command to 'predict' for a Heckman probit regression?
Hello all, I am just wondering if there is an equivalent command to 'predict' for probit regressions? Maarten Buis kindly gave an answer to a previous question I had here -...
View ArticleAssessing model fit over time
Hello, I'm currently working with panel data over a three year period. I have only worked with cross sectional data, so my knowledge with time-series is limited, hence my post on this forum. I have...
View Articleproblems with the capture command
Does anyone have experience with the the capture command failing to capture some error? I am using it, I believe consistently with the documentation, in the following way: capture: ml model ETC,...
View Articlereg3 with clustered robust standard errors
I'm running a 3SLS using reg3 and want to get clustered robust standard errors. Can anyone help me with this ?
View Article