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
Multicollinearity and VIFI am using the following code xtreg recycling loginc logpopden gcses alevels md11 md12 md13 md14 md1…
Understanding the coefficients when the first category is dropped for multicollinearity but they are NOT dummy variables.I am running the following fixed effects regression xtreg recycling loginc logpopden age1120 age213…
Robust standard errors hausman testHi all, Im encountering a problem when trying to run a hausman test with robust standard errors. Iv…
Bivariate probit modelHi, I am estimating a bivariate probit model on the joint decision for a mother to participate in t…
Drop variables based on observations Code: +----------------------------------------------------------+ | A B …
Subscribe to:
Post Comments (Atom)
0 Response to Bootstrap for regression parametrs
Post a Comment