BookmarkSubscribeRSS Feed
Jep
Obsidian | Level 7 Jep
Obsidian | Level 7

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?

2 REPLIES 2
PaigeMiller
Diamond | Level 26

@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.

--
Paige Miller
PGStats
Opal | Level 21

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.

PG

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

What is ANOVA?

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.

Discussion stats
  • 2 replies
  • 974 views
  • 3 likes
  • 3 in conversation