Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • a problem on latent class model & complex sampling data

    Hi forks,

    I want to use latent class model to analyze complex sampling survey data, and I know the LCA stata plugin have such functions to deal with clusters and weights.
    Here's the syntax the user's guide shows

    program doLCA, rclass version 11.0
    syntax varlist, NClass (integer) ///
    Categories (numlist >0 integer) ///
    id (variables) ///
    GROUPs (variables) ///
    weight(varlist) ///
    clusters(varlist) ///

    But I came up with errors when I ran my syntax.

    doLCA belonging happiness safety trust, ///
    nclass(2) categories(3 3 3 3) ///
    seed(119624) ///
    weights (belonging happiness safety trust) ///
    clusters (belonging happiness safety trust)

    The error was:
    belonginghappinesssafetytrust invalid name
    r(198);

    Does anyone know what the problem was? I really appreciate your help!

    Best,
    Hui
Working...
X