data test;
input CAge CBP SAge SBP;
grp = "C"; age = CAge; bp = CBP; output;
grp = "S"; age = SAge; bp = SBP; output;
keep grp age bp;
datalines;
38 112 35 115
40 110 37 110
45 120 41 114
50 123 47 108
54 118 52 113
58 124 53 110
59 126 55 120
67 128 60 114
70 127 61 108
75 132 65 120
;
proc glm data=test plots=ancovaplot;
class grp;
model bp = grp|age / solution;
run;
PG
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.