BookmarkSubscribeRSS Feed
yuhhwa
Calcite | Level 5

①please tell me the case of following ERROR

 

ERROR: A problem occured during model estimation.  Diagnostic information is as follows:
 
        Matrix not positive definite
        OCCURRED IN: cholesky_in_place in MOD logit_model
        Logistic regression failed at iteration 1
        -Hessian not positive definite.
        OCCURRED IN: run_logit_model_threads in MOD logit_model
        Could not fit logit model.  The problem occurred in:
        Group:  1.
        OCCURRED IN: mstep_beta in MOD estimation
        M-step for BETA failed at iteration 1.
        Could not fit logit model. We suggest
        using the BETA PRIOR statement.
        OCCURRED IN: run_em_modelfit in MOD estimation
 
②for example, when I want to incorporate all of the following variables,proc lca program is right?
 
House number Customer number employer number sex height(cm) weight(kg)      product   year    period
112          1       LO2113   1   161   58          A0001         2018    3
112            2        LO2223   2   140   60         A0002         2017    4
113          3       LO2113   1   131   73          A0001         2013    2
113          4       LO2113          2          170         121            A0003         2014   6
221          5       LO2004          2          121         48              A0002         2015   7
222          6       LO2113          2          135          50              A0002         2017   8
223          7       LO2113          2          140         .                   A0002         2016   1
 
PROC LCA DATA=out OUTPARAM=param1 OUTPOST=post1 OUTEST=est1 OUTSTDERR=stderr1;
NCLASS 5;
id employer number; 
item sex;
 
CATEGORIES 2;
COVARIATES height weight year period;
clusters house number ;
 
NSTARTS 50;  
RHO PRIOR=1;
SEED 1000;
RUN;
 
  1.  id:Is multile variables is available?
      2.  when I want to standarize, would I better to use not covariates statement,but weight statement?
      3.  what statement do I use to incorporate product variables?
3 REPLIES 3
hhh2
Calcite | Level 5

Have you solved this problem please? I also encountered this situation

Cynthia_sas
SAS Super FREQ
Hi:
These procedures (LCA and LTA) are discussed here: https://support.sas.com/kb/30/623.html with a link to the documentation. Perhaps you'll find something relevant in the documentation on this issue.
Cynthia
hhh2
Calcite | Level 5
Thank you very much!

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 2052 views
  • 0 likes
  • 3 in conversation