The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Latent Class Analysis
Latent Class Analysis [message #15651] Mon, 27 August 2018 15:20
waltine is currently offline  waltine
Messages: 21
Registered: March 2013
Location: South Africa
Member
Dear All,

I am trying to run LCA with STATA 15 with the following variables below which have been coded 0"No" 1"Yes" in STATA with the command below. However, the model cant converge. I will like to know if there is anything I am doing wrongly with regards to coding the data.

Abstinence (never had sex) - no and yes
HIV testing - no and yes
cc use at last sex - no and yes
single sexual partners - no and yes

Command used: gsem (abstinence ssp hivtesting condomuse <- _cons), family(bernoulli) link(logit) lclass(A 2)

Thank you.


waltine
Previous Topic: Diagnostic tests on svy data
Next Topic: Merging Height and Weight Data with KR files
Goto Forum:
  


Current Time: Thu Nov 28 18:48:17 Coordinated Universal Time 2024