Hi,
I'm trying to figure out the formula that proc surveymeans uses when conducting a test on two independent sample with replicate weights.
The following is the code that generated a t-score on my dataset, but I do not know what formula proc surveymeans used to arrive at the t-value:
proc surveymeans data = test_19
varmethod = jackknife alpha = 0.1 mean var stderr sum
;
var flag1;
weight bw0;
repweights bw1 -bw80 / JKCOEFS = 0.05;
domain treatment/diffmeans adjust=bon;
ods output Statistics=MyStat_c;
run;
The dataset is structured as:
Treatment Flag1
T 1
T 0
T 1
T 1
C 0
C 0
C 1
Thank you!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.