proc lifetest data=sascomp.adqs method=PL plots=(survival(atrisk cl) logsurv) alpha=0.05;
time RETIME*STATUS(0);
strata Group;
run; This is my PROC LIFETEST program, which can output a survival plot for me. I've already know if I add survival(test), then I can add log rank's P-value on my plot, which is: proc lifetest data=sascomp.adqs method=PL plots=(survival(test atrisk cl) logsurv) alpha=0.05;
time RETIME*STATUS(0);
strata Group;
run; But I don't know how to add median survival time and HR from Cox. Please help me, many thanks!
... View more
Dear SAS Communities,
I was trying to predict outcome values for a continuous variable (DM) after fitting a quadratic regression in proc glm
I would like to know the dry matter (DM) values when hedonic (categorical predictor variable) is 5, 5.5, and 6.
I was trying this model but I get this error: Wrong number of AT variable values
proc glm data=one; model DM= hedonic hedonic*hedonic; lsmeans/at hedonic = (5 5.5 6) pdiff; run;
I would greatly appreciate your help!
... View more
Hello Experts,
To displya the result of proc sgscatter (for 18 variables), I use ods graphics on/width=1000in height=1000in but I still have the display issues : the image is too small. Could you help me?
Thank you!
... View more
I have a set of character values separated by commas in a macro variable. I would like to create a SAS dataset with each observation taking one value from the macro variable. I run the following code but it gives an error.
%let myNames = "AAA", "BBB", "CCC", "V123";
data names_data;
length Name $5;
do _n_ = 1 to countw(&myNames, ',');
Name = scan("&myNames", _n_, ',');
output;
end;
run;
... View more