Hi everyone. I need to make bootstrap for regression paramatr for price and weight in new sample from general population, but i don't know how to make regression in new sample.
My code looks:
sample
preserve
local var1 = "price"
local var2 = "weight"
local n=r(N)
local B=1000
local alfa = 0.05 //b to liczba próbek
forvalues i=1/`B'{
generate sampl`i'=`var1'[ceil(`n'*runiform())]
generate sampl1`i'=`var2'[ceil(`n'*runiform())]
reg var1 var 2
}
Can you help me ?
Related Posts with Bootstrap for regression parametrs
Why are there more significantly nonzero parameters in the fracglm estimate, than in the fracreg probit?1.- The endogenous variable varies between 0 and 1: f_n_p1p2p3_corrupcion 2.- There is a data panel:…
how to calculate z-test for two regression model coefficients (SD and mean)I have two models , both will get the R square and I would like to test the is the difference signic…
Testing for multicollinearity in fixed effects modelHello all, I am running a meta analysis on WTP for wind energy. I am using Stata 16. I use the comma…
Issue about xtpoisson & xtnbreg panel data regression with not concave iterationHi Statalisters, I am working on a project by using counting regression model of panel data. The da…
Margins after -biprobit- in Stata 12Hello I am using Stata 12 and trying to explore -birprobit- command. I am able to run the -biprobit-…
Subscribe to:
Post Comments (Atom)
0 Response to Bootstrap for regression parametrs
Post a Comment