Announcement

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

  • LCA classposterior

    Hi all,

    I am doing a latent class analysis with 6 classes and want to create six new variables (cpost1-cpost6) containing probabilities of class membership to each class for each observation

    gsem (experience_3 experience_4 helplessness experience_6 efficacy_1 heat_experience_3 heat_experience_4 corona_3 corona_4 <-) if experience_1 >= 2 & heat_experience_1 >= 2, lclass(C 6)

    predict cpost*, classpoteriorpr


    After running the code, I get the following answer from STATA:

    option classpoteriorpr not allowed
    r(198);

    I cannot find a reason through googling and hope that someone here can help me or has faced something similar.

    Thank you and best

  • #2
    You have a typo in your command. It should be
    Code:
    predict cpost*, classposteriorpr

    Comment


    • #3
      Ohhh, sorry! I was spending so much time on problem solving and then it is that easy... Thanks a lot though!

      Comment

      Working...
      X