08-25-2016
Scarlett89
Fluorite | Level 6
Member since
08-15-2016
- 7 Posts
- 2 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by Scarlett89
Subject Views Posted 5445 08-16-2016 09:48 AM 5449 08-16-2016 09:38 AM 5457 08-16-2016 09:31 AM 5462 08-16-2016 09:13 AM 5471 08-16-2016 03:36 AM 5491 08-15-2016 11:51 AM 5498 08-15-2016 04:38 AM -
Activity Feed for Scarlett89
- Liked Re: Is SAS telling something about V matrix in PROC MIXED? for SteveDenham. 08-25-2016 05:17 AM
- Liked Re: Is SAS telling something about V matrix in PROC MIXED? for Rick_SAS. 08-25-2016 05:17 AM
- Posted Re: Is SAS telling something about V matrix in PROC MIXED? on Statistical Procedures. 08-16-2016 09:48 AM
- Posted Re: Is SAS telling something about V matrix in PROC MIXED? on Statistical Procedures. 08-16-2016 09:38 AM
- Posted Re: Is SAS telling something about V matrix in PROC MIXED? on Statistical Procedures. 08-16-2016 09:31 AM
- Posted Re: Is SAS telling something about V matrix in PROC MIXED? on Statistical Procedures. 08-16-2016 09:13 AM
- Posted Re: Is SAS telling something about V matrix in PROC MIXED? on Statistical Procedures. 08-16-2016 03:36 AM
- Posted Re: Is SAS telling something about V matrix in PROC MIXED? on Statistical Procedures. 08-15-2016 11:51 AM
- Posted Is SAS telling something about V matrix in PROC MIXED? on Statistical Procedures. 08-15-2016 04:38 AM
-
Posts I Liked
08-16-2016
09:48 AM
The very last question for understanding. So, basically, SAS do not say anything about V matrix in general and I have to search for different solutions in these situations? It just seems strange that SAS check the positive definiteness of G and R matrices but not the V matrix.
... View more
08-16-2016
09:38 AM
I did but thank you so much too, you helped me with the solution!
... View more
08-16-2016
09:31 AM
Thank you so much for the explanation and your help!
... View more
08-16-2016
09:13 AM
I think it has every estimate because I have specified nobound option, otherwise some variances are 0. The matrix in general is NPD apparently. I have to use proc mixed because it is the procedure of my master thesis but I think I have found that type=chol is the same as type=FA0(q) in proc mixed, so I have now: proc mixed data=stat method=reml nobound COVTEST; class id bmi_mother sex country isced troubled; model bmi_z_score=slope_before slope_after bmi_mother sex country isced troubled/s cl ddfm=kr; random int slope_before slope_after/ type=FA0(3) subject=id_no; format sex sex_new. isced isc. country count. troubled tr. bmi_mother catA.; by categ; run; Both groups have no warning about NPD G matrix anymore and the estimates are changed just a little bit. Does it mean that I still have estimated the unstructured matrix just with this factor-analysis (as far as I understood from the Internet) and everything is good? I am not familiar with this method unfortunately.. It took more iterations too. Could you please look on my results? I made SE as well, it is possible with COVTEST.
... View more
08-16-2016
03:36 AM
Here is my SAS Code: proc mixed data=stat method=reml nobound; class id bmi_mother sex country isced troubled; model bmi_z_score=slope_before slope_after bmi_mother sex country isced troubled/s cl ddfm=kr; random int slope_before slope_after/ type=un subject=id_no; format sex sex_new. isced isc. country count. troubled tr. bmi_mother catA.; by categ; run; I have a piecewise mixed model, so I am assuming two random slopes-slope before the event and slope after. I saved some output in Word for one group where G matrix was NPD and attached it here. I deleted the reference categories too, I hope it is ok, was not sure what I am allowed to post. The output with random slopes and intercepts is too big because I have 760 subjects, so in the document is G matrix, intercept and R, iteration history, as well as fixed effects estimates. Without stratifying, the G matrix is ok. I think the problem is that it is just not enough variability in the data or something bacause for this group I have less observations per subject. The results look good compared to the other models but I am still not sure about conclusions.
... View more
08-15-2016
11:51 AM
Thank you very much for your answer. As random effects I have an intercept and two slopes, I can't remove any of them because it is what I have assumed in my analysis- that every subject is allowed to have random intercept and random slope. I suppose the problem is that I have somehow not enough observations after stratifying by group (one group is bigger than second and for bigger group D matrix is PD). Which part of the output or code would be helpful?
... View more
08-15-2016
04:38 AM
Hi SAS Community, I've got a non-positive definite G matrix. It is said that the estimates of fixed effects are still valid if the marginal covariance matrix V is positive definite. Unfortunately, I can't find anywhere if SAS system will tell me about it or will stop (it is telling only about G and R matrices and about infinite likelihood but not about the general matrix V). I though about saving the matrix with "ods output" and check somehow if it is positive definite but this is a block diagonal matrix and I have to write that I want 760 blocks (I have 760 subjects), since SAS shows only the blocks I am specifying. Is somebody familiar with that? Do I have to really prove V matrix or can I trust the results? Darja
... View more