Hi Everyone,
I'm having some trouble with my code below. I want to test whether or not the mean NPS score of each profession category is statistically different from the population NPS mean (7.57). When looking at the output, I can tell that it's not actually applying the weight (professionweight).
PROC SORT data=name; by professioncategory; RUN;
PROC TTEST data=name H0=7.57;
weight professionweight;
var NPS;
by professioncategory;
RUN;
Some additional information that might be useful:
The NPS variable has a range of 0 to 10
professioncategory is a categorical variable
Is there additional code I need to include in order to ensure the professweight is utilized?
Thanks in advance for your help!!
Eva