Hi all, Could you kindly help me? Below is a macro with multiple inputs for predictors/outcomes that automatically make output tables. However I cannot get it to display coefficients, P values, and CI's - could you please help me modify it to display these? data xxx;
input v1-v5 ind1 ind2;
cards;
1 0 1 1 0 34 23
0 0 1 0 1 22 32
1 1 1 0 0 12 10
0 1 0 1 1 56 90
0 1 0 1 1 26 80
1 1 0 0 0 46 45
0 0 0 1 1 57 53
1 1 0 0 0 22 77
0 1 0 1 1 44 45
1 1 0 0 0 41 72
;
run; %macro mylogita(indata, all_deps, indvars =, myout =_out );
%let k=1;
%let dep = %scan(&all_deps, &k);
%do %while(&dep NE);
title "The dependent variable is &dep";
title2 "The independent variables are &indvars";
proc logistic data=&indata des outest=est&k;
model &dep = &indvars;
run;
%let k = %eval(&k + 1);
%let dep = %scan(&all_deps, &k);
%end; data &myout;
set
%do i = 1 %to &k - 1;
est&i
%end;
;
run;
%mend; *run the program;
%mylogita(xxx, v1 v2 v3, indvars = ind1 ind2, myout = myparms)
title;
proc print data = myparms;
var _name_ intercept ind1 ind2;
run; This is the output but without P values and CI's -- could you kindly help me figure out how to add those? Obs _NAME_ Intercept ind1 ind2 _TYPE_123 v1 2.4570 -0.04282 -0.01709 PARMS v2 0.3278 -0.09480 0.09078 PARMS v3 33.3421 -0.50434 -0.40122 PARMS Thank you 😃 Gabby
... View more