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
repeated time values within panelDear All, I have a panel data set. I created both PANEL ID and Time ID. As required, the time ID's …
How to use iv*iv in regressionHello everyone: Is there anyway that i can run a reg like: reg dv iv1 iv2 iv3*iv4 By which mean iv3…
Help regarding the stata codingI need your help regarding the code for multilevel modelling that I am referring to but it is not ru…
probing interactions in quadratic multiple regressionI am trying to probe interactions between my predictor (X) and moderator (Z) in stata. where X has a…
Merging Excel Files to Create a Stata DatasetHello all, New here, new to statistics, programming, and brand new to Stata so bear with me. I am tr…
Subscribe to:
Post Comments (Atom)
0 Response to Bootstrap for regression parametrs
Post a Comment