Hi SAS Users,
I am working on a statistical procedure and i am getting the below error.
ERROR: Nesting of continuous variable not allowed.
Code -
proc gee data=input_data descend;
class type plans ;
model Outcome_ind = type plans counter /
dist=bin link=logit;
repeated subject=time_period(id) / corr=ar corrw;
run;
type values are - 1,2,3 ( numeric)
plans values are - planA, planB, planC (charcter)
counter values are - 1,2,3....100+ (numeric)
Outcome_ind values are - 1,55,0,. (dot)
Thanks,
Ana
You need to put ID in the CLASS statement. Also, I do not know your data, but generally speaking your subject effect might be ID, rather than time_period(id).
Hello, Thanks for the reply. I tried replicating the below SAS example ,
proc gee data=input_data descend;
class type plans ;
model Outcome_ind = type plans counter /
dist=bin link=logit;
repeated subject=time_period(id) / corr=ar corrw;
run;
My scenario -
proc gee data=input_dataset descend;
class time_period type plans;
model outcome_ind = type PLANs counter /
dist=bin link=logit;
repeated subject=time_period(id) / corr=ar corrw;
run;
I have added time_period in the class and still getting the same error. i have 2 million's ID's. I do not think it should be the part of class.
Thanks,
Ana
As noted in the GEE documentation, the variable(s) in the SUBJECT= effect must be in the CLASS statement. It is not a problem since you are not estimating parameters for the levels of the SUBJECT= variable(s). Also, since you say your response has three nonmissing levels, the response is not binary and DIST=BIN is incorrect. If you really just want to use the observations with levels 0 and 1, then you should remove the other observations first or use a WHERE statement to filter them out. Generally, a nested effect is not needed in the SUBJECT= option. See the discussion in this note for clarification.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.