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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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