BookmarkSubscribeRSS Feed
fridge_wpg
Obsidian | Level 7

Hi,

 

I have a regression coefficient (y=1.11*x) of a regression model: KM % = 1.11*TEMR. In another independent data set say Set A, I have TEMR readings from the same instrument as well as KM% of 120 samples. Now if in the Set A, I first multiple TEMRx1.11 to get a variable say TEMR_modified and then like to test whether TEMR_modified would be any different from the KM% of the Set A?

 

What would be my options, please?

 

I first thought of treating TEMR_modified and Km% (both have N120) as two groups and run a two sample ttest, but don’t know if it would be valid (as I notice some occasional variation in both groups for respective readings).

 

Please, advise and if possible with a sas code, thank you all

4 REPLIES 4
PGStats
Opal | Level 21

You can check that your new data supports (does not disagree with) the hypothesis that TEMR = 1.11 KM with proc REG:

 

proc reg data=A;
model TEMR = KM / noint;
test KM = 1.11;
run;
PG
fridge_wpg
Obsidian | Level 7

Hi,

 

Thank you very much for your suggestion. I ran the code "test = km 1.11"  the particular SAS Output is: 

 

Test 1 Results for Dependent Variable KM Source DF Mean
Square F Value Pr > F Numerator Denominator
120.145950.330.5661
23761.00256 

 

I guess the default null hypothesis for the test=1.11 would be that the "new regression model's coefficient (TEMR=KM)" is no different than 1.11?

 

So, what about the question I asked in my original post, how to test that  "TEMR_modified is no different than KM%". Or the above test is sufficient? please. Thank you again

 
 
PGStats
Opal | Level 21

A 2 sample test might not have much power, depending on the range covered by km.

 

You could run a paired t-test of temr_modified and km. Or simply run proc univariate on diff = temr_modified - km.

 

If you have the original data that yielded the regression slope estimate of 1.11, you could also test that the original data and the new data yield the same slope.

PG
fridge_wpg
Obsidian | Level 7
Hi, thanks for the reply.

I am tempted to do the proc univariate on the diff (is it the simple subtraction of the two, right?, no squaring of the mean diff etc!!!!).

Your suggestions are appreciated.

Thanks again

sas-innovate-2024.png

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.

 

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
  • 4 replies
  • 1240 views
  • 1 like
  • 2 in conversation