I'm analyzing a sample of GPs. I want to describe the GP's with extreme values of a variable. This means the subgroups were the variable is above P90 and below P10. I want to bootstrap the entire sample and use the bootstrapped p90 and p10 results as the definitions of the groups above p90 and below p10. Next I want to know the mean and confidence intervals for the mean for these two groups. How can this be done in stata?
I am able to use: bootstrap r(p90), rep(1000): summarize var, detail
However, this only gives the P90 value. I also want to know the bootstrapped mean and CI for the group above p90 :-) I hope this is possible?
Related Posts with Bootstrapping of mean in a subsample
Apologies, double post.. …
Testing the difference between two regression coefficientsHi, I am running two regressions using subsets of the data. I wanted to find if the coeffiecients a…
My dataset has corrupted and was automatically edited or changed........how to fix this?Dear statalist users, Since yesterday, my dataset has changed wired. I have been doing lots of regre…
In psmatch2, how many times control individuals were used with replacementHello, while using psmatch2 command for effect estimate with replacement, can you please let me kno…
Two linked variable loopsHi there, I’m fairly new to Stata and would really appreciate some advice with coding. I’m looking…
Subscribe to:
Post Comments (Atom)
0 Response to Bootstrapping of mean in a subsample
Post a Comment