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
Difference in Difference SignificanceHi all, I'm trying to figure out whether there has been a change in the ratio of liquid assets to t…
Get words from a list if they contain a given substringI have a set of filenames in a list like Code: local files "a.dat b.dat c.dat d.xlsx e.dat f.xlsx"…
Unified preference configuration file across nodes on unix systemI'm using Stata 16 MP GUI with a network license on RHEL. I am connected to that system using MobaXt…
Empty string in macroIs there any way to get an empty string recognized as a word in a macro? The idea is a macro (call i…
Creating a Propensity Score Robustness Check TableHi, Does anyone know if there's a way to create a table like the attached image of different propen…
Subscribe to:
Post Comments (Atom)
0 Response to Latent class analysis (LCA) plugin - assertion is false -error
Post a Comment