Creating a Unique Identifier Variable.
Hallo good people, I have a data set from a survey. Sampling was done by clusters where each randomly sampled cluster had 10 households in it again randomly assigned. The problem is that whereas the...
View ArticleCreating variable that equals the label of another variable
I have a dta file which has a variable called "variable", that records the name of the variable for which the same individual has different values in 2 data sets. For example, in the 2 data sets...
View ArticleTime -series line plots
Hi, i new user stata i want to plot time serie but i can't , i get this : . twoway (tsline exb) time variable not set, use -tsset varname ...- r(111);
View ArticleAggregating Data from Multiple Records into One Observation
I need to transform data from multiple records into one observation so I can apply a regression equation to estimate an additional variable. For each patient there are multiple visits for which there...
View Articleestimates diverging (correlation > 1)
I am trying to perform a simple bivariate analysis of multilevel cross sectional data representing egocentric social networks at baseline. Level 1 includes the characteristics of peers/alters and their...
View ArticleRunning weakiv with reghdfe
Dear all, I am trying to run weakiv with reghdfe. I was wondering whether reghdfe can be extended to support weakiv. (reghdfe already supports ivreg2, so I thought it could be extended) Thank you.
View ArticleSurvey Data - I want to get a time-series plot from survey variable...
Hello, I'm trying to get a time-series plot from a survey (2001 to 2012) variable (questionnaire) with a yes response coded as 1 and a no response coded as 2. Each year has at least 65,000 responses....
View Articleobservations in heckman estimation
I am estimating Heckman wage models. Y is the log of the wage, x1 - x12 are explanatory variables in the wage equation, z1-z3 are the identification variables also included in the selection equation. I...
View Articlextivreg2 gives different standard error than xtivreg (or ivreg) and ivreg2...
Dear all, Consider the following codes which uses the same data but uses four different functions: : webuse grunfeld, clear qui tabulate company,gen(com) qui tabulate year,gen(yr) //1: use xtivreg...
View ArticleRobust Standard Errors
Dear all, Can some one explain to me how it is possible that a regression with robust standard errors gave me less significant values than without standard errors? I have an unbalanced panel data. My...
View ArticleOLS significant interaction term and effects but non-significant marginal...
I estimated a linear regression of the form y c.x1##c.x2 x3... xj In the model coefficients for x1, x2, and the interaction term x1#x2 are all statistically significant. To explore the interaction I...
View Articlextreg: Panels are not nested within clusters
In a cross section of students, we are running xtreg with school fixed effects and teacher-clustered standard errors. Stata gives the error "panels are not nested within clusters," meaning that schools...
View Article--parallel-- package problem: parallel_setclusters() not found
Hello, I'm using the parallel package written by George G. Vega and obtained through ssc. I keep getting an error that I don't understand, and I haven't had any luck trying to track down what it means....
View Articlecoding trends over time in grouped data
I have a data doctor visits of individuals over time. For each individual, data is collected over the consecutive time periods and thus no time period is missing in between. However, for each...
View Articlehow to add digits in stata
hello, I have a question. I have a string variable which Looks like this more or less.. (00000010000100001000000000) where one represents an acticity. I want to add the Digits of the number, so for...
View Articlerepeated cross section difference in diffrerence
Hi I’m Vahideh. I have some questions in doing diff in diff method: I have done an experiment about the effect of communication on boycott success . I have two treatment in one of them communication is...
View ArticleVariables – transformation and interpretation
I'm looking into satisfaction with GP practices in England and I’m using NHS payments to practices as one of the independent variables in the regression model. I have two questions regarding...
View ArticleLinking to FAQ paragraphs
Does the FAQ have anchors so that one can hyperlink to a particular paragraph? If not, can they be added?
View ArticleProblem creating variable in multi-dimensional panel
Hello Statalist! I hope this question will present a nice challenge to the experts on here. I really cannot get my head around how to do it. I have panel data that is on several levels. I have...
View Articleoption not allowed when generating a new recoded variable
hi when recoding this variable : tabulation of amanno00 S1 MAIN | | Freq. Percent Cum. ------------+----------------------------------- 1 | 31 0.18 0.18 2 | 69 0.40 0.58 3 | 120 0.70 1.28 4 | 5,665...
View Article