Hello All,
Is there a way to control for covariates using the NPAR1WAY procedure? I have an outcome which is continuous but not normally distributed and a predictor which is categorical with 3 levels. I also have a covariate which is continuous but also not normally distributed that I would like to control for. Does anybody have an idea of how I can do this?
@Jep wrote:
Hello All,
Is there a way to control for covariates using the NPAR1WAY procedure? I have an outcome which is continuous but not normally distributed and a predictor which is categorical with 3 levels. I also have a covariate which is continuous but also not normally distributed that I would like to control for. Does anybody have an idea of how I can do this?
There is no such capability in PROC NPAR1WAY.
Your response variables don't have to be normally distributed in order to fit a model using PROC GLIMMIX, but you do have to figure out an approximate distribution of the responses; and you can use PROC GLM to fit a model if your response variable errors (not the variable itself) are normally distributed.
Your covariate does not have to be normally distributed.
AFAIK, given the limited information that you provided, the best way to handle this is with PROC QUANTREG, which by default fits the median response. You can define the covariate effect as a polynomial or spline with the EFFECT statement, and test the main effect with nonparametric statistics in the TEST statement.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.