Hello experts, I appreciate any comment on this.
I want to get the residual for each of the companies in my sample by using the above regression model. I am using the following code;
Proc surveyreg Data = want;
cluster gvkey; *standard error clustered by firm;
class industry year;
model I_new=V_P Lev Cash Age Size StR I_new_pre industry year/solution;
*lsmeans industry year;
run;
How I can get the residual for each of the companies? If I include gvkey in class statement, I get standard errors for all companies but I am not sure about it and in that case, I can't use the cluster statement as it shows no memory.
You ask for residuals in PROC SURVEYREG by using the OUTPUT statement.
You ask for residuals in PROC SURVEYREG by using the OUTPUT statement.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: