Hi,
I am using ODS graphics to create a 'journal-ready' regression table in SAS. I have two different types of predictors that I am using, and therefore I am going to create a break in PROC REPORT between these two types. 'Effect' is my variable that contains each of my predictor variables, and I want to move one of my predictors higher up the list of predictors. Currently, my data looks like:
'Effect' 'Estimate' 'pvalue'
Intercept
Evangelical
...
Calls to Language
Language Problem
LRS
Calls to Refusal
...
I want to move 'LRS' to the position under intercept, and I want to keep everything else as is. How should I go about this?
Thanks,
Kevin
One way to achieve the same is to create a numeric order variable with numbers for the respective effect in the order you want to display in the output. Use this numeric variable in the proc report to order the effect and you could place noprint in the define to prevent it from display in output. Hope it helps.
Thanks,
Jag
You mention "type of predictor" but you don't mention a variable to define it.
One way to achieve the same is to create a numeric order variable with numbers for the respective effect in the order you want to display in the output. Use this numeric variable in the proc report to order the effect and you could place noprint in the define to prevent it from display in output. Hope it helps.
Thanks,
Jag
Thanks! This worked for me.
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!
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.