09-08-2015 03:57 PM - edited 09-08-2015 04:00 PM
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.
09-08-2015 04:36 PM - edited 09-08-2015 04:37 PM
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.
09-08-2015 08:50 PM
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);
proc transpose data = param out = see(keep =Col;
proc print data = see;
09-09-2015 04:01 PM - edited 09-09-2015 04:02 PM
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 */
After you have a SAS data set, you can use PROC TRANSPOSE and the RENAME statement in a DATA step to rename the variables.
09-08-2015 07:04 PM
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?