Is it possible to adjust MANCOVA for multiple covariates? For example, in code below prom is dependent variable (group variable, categorical); a1, a2 and a3 are the independent variables (continuous); minibal is the covariate (continuous). Is it possible to have minibal2 as well (using this or other procedure)?
proc glm data=abc;
class prom minibal;
model a1 a2 a3 = prom | minibal;
manova h=_all_;
run;
@pink_poodle wrote:
Something like this then: model a1 a2 a3 = prom | minibal | minibal2 ? This syntax does not seem right to me, because I want to account for prom | minibal and for prom | minibal2, but I do not care for minibal | minibal2.
Correct syntax
prom|minbal minbal2 prom*minbal2
In your problem description, did you miss-state the independent and dependent variables?
This is not my example, I took it from SAS blog:
https://blogs.sas.com/content/sastraining/2011/02/02/the-punchline-manova-or-a-mixed-model/
"In order to increase the amount of money customers deposit in three different account types, a bank designs a factorial experiment with two factors: promotion (Gift or Discount) and minimum balance ($75, $125, or $225).
model a1 a2 a3= promotion|minbal ;
Then, I would just include the confounder on the left side with other independent variables?
In that case, I do not understand the difference between factor and covariate in MANCOVA...
It doesn't matter if it is your example or not. What variable(s) are independent? What variable(s) are dependent? You need to determine this, and only then can you figure out what goes where in the MODEL statement.
Independent variables go to the right of the equal sign in the MODEL statement. Dependent variables go to the left of the equal sign in the MODEL statement.
Thank you, @PaigeMiller,
in this example, I am setting up for MANCOVA like this:
model a1 a2 a3 = prom | minibal
*I know in SAS blog it is another categorical IV for a two-way ANOVA, but in my example I want it to be a continuous IV, a.k.a. covariate.
By the way, without its categorical IV (that leaves just the covariate IV), ANCOVA turns into linear regression (Check!).
My question is this: Suppose there is another continuous IV, a confounder minibal2. How would I represent it in the model? I read somewhere that SAS can adjust for one confounder at a time for ANCOVA, but I am hoping this is not true or that there is some kind of work-around.
P.S. This site is very helpful: http://www.statsmakemecry.com/smmctheblog/stats-soup-anova-ancova-manova-mancova
@pink_poodle wrote:
My question is this: Suppose there is another continuous IV, a confounder minibal2. How would I represent it in the model? I read somewhere that SAS can adjust for one confounder at a time for ANCOVA, but I am hoping this is not true or that there is some kind of work-around.
I am not aware of any such restriction, I have seen people model with multiple confounding variables.
@pink_poodle wrote:
Something like this then: model a1 a2 a3 = prom | minibal | minibal2 ? This syntax does not seem right to me, because I want to account for prom | minibal and for prom | minibal2, but I do not care for minibal | minibal2.
Correct syntax
prom|minbal minbal2 prom*minbal2
prom|minbal <== creates terms prom and minbal and prom*minbal
minbal2 <== model term minbal2
prom*minbal2 <== model term prom*minbal2
So, this is the same as if you had typed
prom minbal minbal2 prom*minbal prom*minbal2
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.