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
What's wrong with my code for merging two datasets?I am merging dataset #1 with the following structure: Code: * Example generated by -dataex-. To i…
Summary statistics and export to .tex format to be used in LatexI have monthly data by date over past several years in 4 different columns. Can I produce a table si…
Interpret results from xtabond2Dear all, I have the results from xtabond2 as follows: Code: Dynamic panel-data estimation, two-s…
Creating continuous categories out of discrete observations.Hello I am trying to draw a graph where I want to create continuous categories our of the number of …
How to deal with outliers in panel data set?Dear all, I am working on panel data set (220 Observations (Countries,years)), and after implementin…
Subscribe to:
Post Comments (Atom)
0 Response to Bootstrap and Fisher's exact test
Post a Comment