Can someone here suggest to me a suitable way to build a cross-lagged panel model with categorical variables on Stata MP 15.1? I built a cross-lagged panel model with categorical variables on Stata. Xs are binary variables, while Ys are continuous variables. They are repeated measurement across 5 waves. Equality constraints (i.e., a and b) were added as they have reciprocal associations. The causal directions of these variables are shown below. Array
In the first place, I used generalised response variables (i.e., family/link: Bernoulli / logit) to construct the variables of x, but I got errors when Stata displayed the GSEM results. Then, I changed the generalised response variables to observed variables (i.e., squares), and it ran smoothly. However, the effects of y on categorical x can’t be explained by the coefficients. That is, squares are for continuous variables, but Xs are binary variable. Alternatively, I should not use squares to construct Xs. What techniques should I apply to deal with this issue?
Related Posts with Building cross-lagged panel models with categorical variables on Stata
Looking for a way to do local regressions on data with many zeroesI want to run a nonparametric or semiparametric regression on data which I suspect to be non-linear.…
while loop error, testing overdispersionHello everyone, i have an issue with a loop. I got this from Hilbe's book "modeling count data". I'm…
Point transparency in spmapHi all, I wonder if its possible control the Point transparency using spmap: Code: spmap relig1 …
Merging two variables + timeDear Statalist users I have some activity data which asks respondents how much time they spent in p…
twoway scatter plot with bar overlay — opacity issuesHi everyone, I'm trying to create a bar plot using the twoway command with scatterplots "behind" th…
Subscribe to:
Post Comments (Atom)
0 Response to Building cross-lagged panel models with categorical variables on Stata
Post a Comment