This code is run after proc logistic. No errors in log but no label either. What is wrong here? Thank you.
MM
data pred; set pred; label stdresdev="StandardizedDevianceResiduals"; run; proc print; run;
pred is created during a run of proc logistic. no errors in log.
output out=pred predprobs=individual xbeta=xbeta p=probability lower=lower upper=upper reschi=reschi resdev=resdev stdresdev=stdresdev / alpha=.05;
Adding to what @PaigeMiller already proposed, you can even split the label to improve readability (if that word exists?) :
data have;
stdresdev=2.7;
label stdresdev="Standardized*Deviance*Residuals";
run;
proc print data=have label split='*'; run;
Koen
Use the LABEL option in PROC PRINT.
Adding to what @PaigeMiller already proposed, you can even split the label to improve readability (if that word exists?) :
data have;
stdresdev=2.7;
label stdresdev="Standardized*Deviance*Residuals";
run;
proc print data=have label split='*'; run;
Koen
Good point. If you are going to create a label, make it a readable label.
And instead of running a data step over the whole dataset, use PROC DATASETS to only change the metadata in the dataset header.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.