BookmarkSubscribeRSS Feed
ntburton1
Calcite | Level 5

I need the following statement to output a dataset with my random effects (randoms3) using weighted data. However, when I include the weight statement below, the dataset, randoms3, does not output. It only outputs missing data. When I remove the weights statement, the dataset randoms3 does output correctly. Does anyone know why this is?

glimmix data=data;

ctycode1;

asthma3 = sex age race2 agegp nohs/solution dist=binary link=logit ddfm=satterth oddsratio;

random ctycode1 / solution;

tech=nrridg;

out=brfssout pred=pred3; 

output CovParms = randoms3 ParameterEstimates = fixed3; 

weight weight;

run;

3 REPLIES 3
ballardw
Super User

First thing is check the values of your weight variable. Missing or negative values will mean that observation is not used.

ntburton1
Calcite | Level 5

My weights are all there. They're pretty low though.

Min=.002, Max=1.03.

ballardw
Super User

It looks like your posted code is missing some text, it may help to repost.

Do you get any warnings in the log when missing data is generated?

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 476 views
  • 0 likes
  • 2 in conversation