Hi, all.
i got an warning that
WARNING: Obtaining minimum variance quadratic unbiased estimates as starting values for the covariance parameters failed.
In the study, I want to know whether feeling sad can predict level of act.
and my sas is university edition, v94.
acting=level of act(0,1)
sadcw=within subject variable(sad)
sadcb=between subject variable (sad)
timec=time
I could do this and got results.
proc glimmix data=data;
class id time;
model acting(event="1") = sad_lag1 sadcb_lag1 timec / link=logit
dist=binary DDF=95, 94, 95, 95 solution cl;
random intercept / subject=id type=un g solution cl;
random time/ subject=id type=ar(1) residual;
run;
but got warning about this.
PROC GLIMMIX DATA=data;
CLASS id time;
MODEL acting (EVENT="1")=sadcw sadcb timec/LINK=logit
DIST=binary DDF=95, 94, 95, 95 SOLUTION CL;
RANDOM intercept/SUBJECT=id TYPE=un g SOLUTION CL;
RANDOM time/SUBJECT=id TYPE=ar(1) RESIDUAL;
run;
if someone know about this problem. please help me.
also, i got something weird about variables.
I got variables like, sadcb, sadcw, sad_lag1, sadcb_lag1 through sas.
I think if i could not get data today, then there are no sadcb data. am i right?
but there are sadcb data on sas outcome data(calculated).
could it be a cause of the warning sign?
sorry for my poor English and thank you for reading.
*I should make it clear that I'm not an expert in this arena, by any means. So I hope that someone chimes in to correct me, if you have a more solid understanding of the topic. That being said, here are some tips that i have learned along the way*
So, I'm not exactly sure what you are trying to measure; however, I'll give my best guess as to how you should set up your model, based on what you have written. Or at least a model that you can start out with.
By the way, the error is basically saying that it can't find covariance parameters during it's initial search that will satisfy the model as it has been specified. So what we will do is start out with a simple model, and then pass those parameters as starting values for a more complex model.
You will notice that i've changed several things within the model:
Model Code (using null model): This is where we will try and find some good starting values.
ods SELECT FitStatistics CovParms IterHistory;
Proc GLIMMIX Data=data;
CLASS id time;
MODEL acting(EVENT="1") = /
link=LOGIT DIST=Binary DDFM=BW SOLUTION CL;
NLOPTIONS
tech=NRRIDG
gconv=1e-6
maxiter=100000 maxfunc=100000;
RANDOM int/ Subject=id TYPE=VC g SOLUTION CL;
RANDOM time / Subject=id TYPE=AR(1);
ods output CovParms=CovParmEstimate;
run;
QUIT;
ods listing close;
Model Code (using more complex model with covariance starting values from above): Again, from what i understood about how you've named the fixed variables, I'm not sure that this is the most appropriate model; however, you know more about it than i do, so proceed with caution with inference.
ods SELECT FitStatistics CovParms IterHistory;
Proc GLIMMIX Data=data;
CLASS id time;
MODEL acting(EVENT="1") = sadcw sadcb timec/
link=LOGIT DIST=Binary DDFM=BW SOLUTION CL;
NLOPTIONS
tech=NRRIDG
gconv=1e-6
maxiter=100000 maxfunc=100000;
PARMS /pdata=CovParmEstimate;
RANDOM int/ Subject=id TYPE=VC g SOLUTION CL;
RANDOM time / Subject=id TYPE=AR(1);
run;
QUIT;
ods listing close;
I hope this provides some insight!! And like i said, if anyone knows anymore about it, please chime in to correct me/help them out!!
Just out of curiosity, was any of that able to help you out?
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.