SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
eap
Obsidian | Level 7 eap
Obsidian | Level 7

I wish to test for significance among paired pre-test & a single posttest score (dependent variables) and categorical age (Independent variable). The dependent variables are non-normally distributed. I created a new dependent variable 'MEANDIFF' [posttest score - pre-test score] and used a nonparametric method:

proc npar1way data=have wilcoxon;

class agegrp;

var MEANDIFF;

run;

Factor

Pretest Score

Posttest Score

p-value

 

 

 

p-value here

<18

     54.2

    74.3

 

18-34

     58.6

    75.8

 

35-54

     57.1

    80.2

 

 

I get an overall p-value but am not sure if it's statistically sound to do this. Should I just report medians and (IQRs) and not report a p-value?

Any insight?

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

You should be testing MEANDIFF for location, i.e. is it significantly greater or less than zero, with the sign or signed rank test in proc univariate. See example

 

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=procstat&docsetTarget=pro... 

PG

View solution in original post

1 REPLY 1
PGStats
Opal | Level 21

You should be testing MEANDIFF for location, i.e. is it significantly greater or less than zero, with the sign or signed rank test in proc univariate. See example

 

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=procstat&docsetTarget=pro... 

PG

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 694 views
  • 1 like
  • 2 in conversation