Hi, I am trying to run proc glm (on SAS 9.4 TS Level 1M5) with a continuous dependent variable (log10biomarker) and 1 continuous independent variable (log10root) and 1 categorical independent variable (Species: either Kanlow or Summer). I would like to test for the separate effects of log10root and Species, but also for the interaction between the two independent variables. I have tried the code (below), specifying that Species is a categorical variable with the statement Class. And no dummy coding was necessary as the dataset lists either "Kanlow" or "Summer" in every cell (i.e. not say, "0" for Kanlow and "1" for Summer). However, the output (attached) shows that the interaction is tested for Kanlow and Summer individually. Instead, I want to simply test the interaction log10root * Species on log10biomarker (i.e. does the effect of log10root on log10biomarker change based on whether the species is Kanlow or Summer). proc glm data=Rootmicr.Initial; Class Species; by Group; model log10biomarker = log10root | Species / solution; ods output ParameterEstimates=Rootmicr.IniDepthSpecIntxnGLMparmestim; run;
... View more