Announcement

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

  • Stata package for LCA and SEM models

    Dears,

    Can anyone please give me a solution for running the LCA and SEM models in stata.
    Is there any packages needs to be installed before working on it?
    I tried running "gsem" and "estat lcmean" or "estat lcprob" its throwing me the error.
    Kindly help me out of this.

    Thanks in advance
    Divya

  • #2
    What version of Stata are you using? Stata has many error messages, what commands did you run and what are the error messages that they is telling you?

    Take a few moments to review the Statalist FAQ linked to from the top of the page, as well as from the Advice on Posting link on the page you used to create your post. Note especially sections 9-12 on how to best pose your question. It's particularly helpful to copy commands and output from your Stata Results window and paste them into your Statalist post using code delimiters [CODE] and [/CODE], and to use the dataex command to provide sample data, as described in section 12 of the FAQ.

    The more you help others understand your problem, the more likely others are to be able to help you solve your problem.

    Section 12.1 is particularly pertinent

    12.1 What to say about your commands and your problem

    Say exactly what you typed and exactly what Stata typed (or did) in response. N.B. exactly!

    Comment


    • #3
      Do look carefully at the SEM pdf documentation - accessible from the help button on the top of the Stata window. It includes examples of such things.

      Comment


      • #4
        Stata 15 and 16 can do latent class analysis under the gsem command. If you don't have either of these Stata versions, there's a plug-in developed by Penn State university that you can download. There is a command called lclogit developed by Pacifico and Yoo, which should be available on SSC. If you have versions 13 or 14 you should be able to use either. lclogit is an econometrics-oriented version of the technique, and I'm not very familiar with it, but it may demand a different style of data organization than the PSU plugin. If you are most users, you would probably want the plugin.
        Be aware that it can be very hard to answer a question without sample data. You can use the dataex command for this. Type help dataex at the command line.

        When presenting code or results, please use the code delimiters format them. Use the # button on the formatting toolbar, between the " (double quote) and <> buttons.

        Comment

        Working...
        X