Hello, I've been trying to use the LCA plugin from Penn State for my analysis using Stata/IC. I successfully got results for the practice examples but when I try to input my own data (for the first example), I am getting the "assertion is false" error r(9). This is my code:
discard
//set trace on
drop _all
cd C:\Users\anhns\OneDrive\Desktop\Release64-1.3.2\
infile using LcaSampleDataset
/*Example 1: LCA model */
doLCA Q13_1 Q13_2 Q13_3 Q13_4 Q13_5 Q13_6 Q15_1 Q15_3 Q15_4 Q15_5 Q15_6 Q15_7 Q15_8 Q17_1 Q17_2 Q17_3 Q17_4 Q17_5 swfeecalc_yes floodinsurance_yes, ///
nclass(3) ///
seed(100000) ///
seeddraws(100000) ///
categories(5 5 5 5 5 5 4 4 4 4 4 4 4 4 4 4 4 4 2 2) ///
criterion(0.000001) ///
rhoprior(1.0) ///
return list
matrix list r(gamma)
matrix list r(gammaSTD)
//matrix list r(rho)
//matrix list r(rhoSTD)
After following advice from another forum to include "LcaSampleDataset 1/750" and "maxiter(800)", I received a different error code "varlist not allowed" r(101).
I am able to produce results on stata16 using gsem, but only for classes 1,2, and 3. When I try to use lclass(C 4), my results do not converge. Can somewhere tell me what I am doing wrong for either cases?
Related Posts with Latent class analysis (LCA) plugin - assertion is false -error
Problems with dates (type mismatch r(109))Dear community, I am new to stata and have a problem I cannot solve. I have dates which are in the f…
Single effect estimate for a categorical interaction term?!hi all! I'm working on a project looking at the effect of an intervention on a continuous outcome v…
Specify twoway graph attributes with variableHi all, I'm trying to figure out a quicker way to create readable charts. Often when I plot scatter…
Loop Append Multiple Waves of dtaHello everyone, I know that this has been addressed and answered multiple times, however I am very …
reshaping in stataI have some data in which I have for each row the data by center, and I need to have them by student…
Subscribe to:
Post Comments (Atom)
0 Response to Latent class analysis (LCA) plugin - assertion is false -error
Post a Comment