I am trying to determine the Odds ratio of the association between the number of hpv shots and poverty status adjusting for age, race, and sex. we have grouped the number of shots by 0-1 and>=2 and using the poverty status Above Poverty >$75k as our reference. This is the code ive been trying to use but it gives me an error message of "invalid reference value for incpov1" and a syntax error for my event statement
proc logistic data = puf.nisteenpuf19 descending;
class incpov1 (ref="Above Poverty >$75k") / param=ref;
model hpvi_group(event= "0-1" ">=2") = incpov1 age sex raceethk;
run;
What are the actual values (formatted) in your data set puf.nisteenpuf19? Did you type the ref= properly? Does it match exactly?
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: