Hi everyone, I am kind of new to the forum. I have a question relates to resampling and Fisher's exact test. I hope someone will be able to help me with this. I have a sample of 1197 observations, among that, 807 observations have "Treatment==1", and 390 observations have "Treatment==0". I want to resample (the new sample size is till 1,197 observations) with replacement the observation that have "Treatment ==1". My code is following:
generate fw = .
bsample 807 if Treatment==1, weight(fw)
This is what I get:
Array
Do they way I did correct? My new sample still have 1,197 observations with 807 observations is resample with replacement if "Treatment==1" ?
Then I want to do the Fisher's exact test for the new sample which "Treatment ==1" and "Treatment ==0". Does anyone know how to do it?
Related Posts with Bootstrap and Fisher's exact test
Hausman testHi, For my thesis I am doing a panel data analyses, and I am trying to perform an Haussmen test to …
Questions in doing semHi there! I want to conduct an SEM model to test the mediator. However, it shows 'factor-variable op…
Problem in adding p-values of null hypothesis while creating a tableGreetings! As per the model on which I am working where I try to find the impact of mentoring versus…
Merging more than two data sets using macros and foreach loopHello Everyone, I want to merge three datasets using macros and foreach loop. The file names are 1.…
generate event time across yearsDear All, Consider the following data (a duplicate post is here): Code: * Example generated by -dat…
Subscribe to:
Post Comments (Atom)
0 Response to Bootstrap and Fisher's exact test
Post a Comment