The variable "in_default" has the observations 0 and 1. In results, table "Proportion (risk) Difference Test" calculates for "in_default" equal to 0. Is there how to obtain this table for "in_default" equal to 1?
Follow the code I used:
proc freq data=test;
weight pd;
tables leaf*in_default / riskdiff(equal var=null);
run;
Hello @Thalitacosta,
You can add the COLUMN=2 riskdiff option
tables leaf*in_default / riskdiff(equal var=null column=2);
to tell SAS that you want the calculation for the other column (i.e., in_default=1). The default is column=1, which in your case corresponds to in_default=0.
Hello @Thalitacosta,
You can add the COLUMN=2 riskdiff option
tables leaf*in_default / riskdiff(equal var=null column=2);
to tell SAS that you want the calculation for the other column (i.e., in_default=1). The default is column=1, which in your case corresponds to in_default=0.
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.