BookmarkSubscribeRSS Feed
RorschachYoung
Fluorite | Level 6

when i using PROC LOGISTIC ,unlike PROC PRINT there is no label option, so can i change ouput's variable name into label name in this situation?

RorschachYoung_0-1629077981246.pngthis is the maximum likelihood estimate output;

 

2 REPLIES 2
maguiremq
SAS Super FREQ

Your answer lies in the PARMLABEL option in the MODEL statement.

 

Here's a fabricated example:

 

proc sql;
	create table 	work.cars as
		select
					*,
					(
						select
									mean(msrp)
						from 
									sashelp.cars
					) as mean_msrp,
					case 
						when msrp < calculated mean_msrp then "1"
						else "0"
					end as flag
		from
					sashelp.cars;
quit;
					
proc logistic data = work.cars descending;
	model flag = enginesize cylinders;
run;
		
proc logistic data = work.cars descending;
	model flag = enginesize cylinders / parmlabel;
run;

maguiremq_0-1629122363289.pngmaguiremq_1-1629122380732.png

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1414 views
  • 0 likes
  • 3 in conversation