Hi,
Could someone please tell me how to assign a set of variables, values from a table. I have a table of parameter estimates of a non linear regression and I want to pass the values of the estimates to the variables for a differetn set of calculation.
Debjit
I'm not sure what you're asking, can you please clarify your question.
I have a table of parameter estimates of variables. Lets call the variables a, b,c & d. I wish to know if there is a way to save the values of the parameter estimates of a, b, c, d in a set of different variables a1,b1,c1 & d1. I think my question is how to pass the values from a table to some other variables.
There may be elegant way for this. But a hardway is to use ods output and proc transpose as:
proc reg data = sashelp.class;
model weight = height age ;
ods output ParameterEstimates = param(keep = Estimate);
run;
proc transpose data = param out = see(keep =Col:);
run;
proc print data = see;
run;
If you post your code, it will easier to know what you are trying to do.
One interpretation: You are running a regression and you get a parameter estimates table. You can write the table to a SAS data set by submitting the statement:
ods output ParameterEstimate; /* or whatever the table name is */
You can find the name of any ODS table produced by any SAS procedure.
After you have a SAS data set, you can use PROC TRANSPOSE and the RENAME statement in a DATA step to rename the variables.
By table do you mean a SAS dataset? A table in a non-SAS data base or other electronic file? A table of values generated by somether software in a report? A printed document?
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 16. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.