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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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