BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
lydiawawa
Lapis Lazuli | Level 10

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!

1 ACCEPTED SOLUTION
1 REPLY 1

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 845 views
  • 1 like
  • 2 in conversation