Hi,
I am looking into some cost (Dependent Variable) for three (3) different kind of surgeries and plan to present the mean of predicted cost for each of three surgery groups. The independent variables will be surgery group, comorbidity, and variables for some socio demographic information. I think I should use generalized linear model (proc genmod) with gamma distribution. My SAS code is listed below. When I ran the code, there always were two same errors shown. I am not sure about the reason. I had nothing to do with SUBFUNC, and did not assign any library named SUBFUNC. Could you give me some hints? Another question is even though there were error shown up, I still got the result. Can I just use this result?
Thanks so much!
Proc genmod data=abc.mydata;
ERROR: Libref SUBFUNC is not assigned.
ERROR: Libref SUBFUNC is not assigned.
WARNING: Unable to load prototypes from 'subfunc.cmplib'.
Class surgery_cat female race_cat income_cat urban comorbidity_cat;
Model payment = surgery_cat age female race_cat college income_cat urban comorbidity_cat / dist=gamma link=log ;
Output out=abc.resultdata prob=p;
Run;
proc means n mean stddev CLM data=abc.resultdata;
class surgery_cat;
var p;
run;
This seems like an issue for Technical Support.
Clearly SAS thinks that you have defined a library of functions. Have you been experimenting with PROC PROTO or PROC FCMP recently? Have you exited SAS and then restarted? If so, there could be some incorrect statements in your configuration file. Try running the following statement and look in the log to see if the COMPLIB= option has been assigned a value.
options option=(cmplib) value;
run;
Hi Michellel,
Did you resolve the issue?
error in gamma GLM
ERROR: Libref SUBFUNC is not assigned.
ERROR: Libref SUBFUNC is not assigned.
WARNING: Unable to load prototypes from 'subfunc.cmplib'.
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.