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
Problem with import delimited - characters "¿" "1/2" "1/4" etcHi everyone, I want to import a public data set of standardized tests in Colombia. This information…
Re coding many variable simultaneouslyHiii All, I am using a datasheet which have many categorical variables like v1, v2 , v3, v4, v5 ....…
command and interpretation for categorical dummy interactionDear Statalist, I am using ordered logistic regression, depvar: 5-scale happiness level (women only…
renvars commandHi, I am trying to run the renvars command but it keeps on giving me a particular error. Command: r…
Simulate correlated binary variablesHi, I would like to simulate correlated binary variables. Theoretically, I should have been able t…
Subscribe to:
Post Comments (Atom)
0 Response to Bootstrapping of mean in a subsample
Post a Comment