Applying Weights in SEM Builder
Hello, I am running a confirmatory factor analysis in which I want to apply an importance weight. The syntax for the model is something like: sem L-> x1 x2 x3 x4 x5 [iweight=weight] I would like to...
View ArticleFixed Effects AIC
I am comparing a mixed model with a fixed effects model and using the Akaike Information Criteria to assist with the model selection. The basic AIC data follows: Model Mixed Fixed Effects Log...
View ArticleGetting values of two Variables in one horizontal line
Dear community, While i'm currently learning stata's syntax, I'm a bit confused about how to handle the following structure of a dataset: ------|----Group----|----Var_X----|----Var_Y----|...
View ArticleRunning statsby to find idiosyncratic risk
Hello, i'm analyzing the impact of ceo experience on corporate risk. One measure i analyze for risk is the idiosyncratic risk by regressing the daily market returns (S&P 500) on the daily stock...
View ArticleHow do we interpret Z score when used as LHS (Dependent) variable?
We are running a regression with the Z score on the LHS and a dummy on the RHS. We understand that the coefficient on the dummy represents the corresponding change in Z score. The question is that can...
View ArticleMoving Sum Unbalanced Panel
Hi everyone, I am trying to generate a rolling sum over the last 12 observations in an unbalanced panel. I tried movingsumm and egen commands but did not succeed, thus I thought about creating a brief...
View ArticlePrincipal Component Analysis
Dear All, I am trying to estimate a Production Function at firm level augmented with different dimensions of territorial variables (e.g human capital, social capital, infrastructure etc.) I have more...
View ArticleDestring ICD9 without losing leading zeros
This topic has been approached before in this forum but not, so far as I can tell, conclusively addressed. I have ICD9 codes in string form. I need to export them in numeric form in order to upload...
View Articlepanel regression / fixed effects / time fixed effects as well
I have panel data including 48 US states from 1900-1920. I am estimating a fixed effects model with heteroscedasticity and autocorrelation: xtreg y x, fe vce (cluster state) A time series plot of y...
View Articlemixed command with 3 random intercept terms with sub equations
Hey all, This is a bit of a large question so I really, really appreciate you taking your time to help me out! I'm new to hierarchical modeling and trying to understand how to do it in stata. I am...
View ArticleFinding numbers within a string variable and recoding everything else.
Hi, I've been going around in more circles trying to clean up some data and wondered if anyone had any suggestions: I've got a dataset which referred to expenses so our question "how much did the item...
View ArticleWeird error while trying to merge
Hey guys, I've got a dataset full of employee information and I'm trying to add in a snapshot from earlier in the year. I typed mer 1:1 id using lastmonth.dta and first it told me it adjusted all the...
View ArticleGrowth model with multilevel structure using xtmixed
Dear Statalist, I welcome suggestions for testing a linear regression model on a pooled series of cross-sectional surveys. This scenario might be familiar to some. Each survey cycle has a common...
View ArticleDifference between coefficients of two groups in regression with two way...
Dear Statalist I am struggling to find codes for the difference between regression coefficients of two groups with two-way clusters. I am using panel data with clustered standard errors across firms...
View ArticlePISA data set
Dear All, I want to create SPSS data set from SPSS control file of PISA 2012. SPSS control file is in *txt format. But I am not able to run the SPSS control file. Please suggest the best way.
View Articleeigensystem( )
Dear Statalisters, I posted this on the general forum yesterday and got no response. I suppose this forum is more appropriate for this topic. my goal is compute eigenvector centrality for a 471*471...
View ArticleCFA likelihood ratio output
I am attempting to examine factor invariance (as per Phil Ender's Hierarchy of Factor Invariance presentation) with a 2nd order factor. I am confused because my output for the first step (separate CFAs...
View Articlehow can i convert unbalanced panel into balance panel
hi, i use chns income dataset including wages in different years but the panel is unbalanced. and i merged another balanced gender dataset without year. both of them has unique id value for each...
View Articleignoring thousand separate somehow
My txt file comes with a thousand separate as "." for the variable "População", like shown below: : "Ano";"Mês";"Região";"IBGE";"UF";"Município";"População";"Teto (ACS)";"Credenciados pelo Ministério...
View Articledisplaying the exact observation with problematic value
I am facing the common problem of appending datasets which contains variable with diferent type. Before using the -force- option, I would like to see the exact observation which has the numeric...
View Article