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
How to create a new variable which must contains two o three different weighted variables of my datasetHi, I have data from a survey. There are three different questions, that figures as three differen…
java ( sfi-api ) date format?I did not find in the Java api documentation ( https://www.stata.com/java/api/index...e-summary.html…
Mixed Logit ModelWhy could not I make alternative specific alternatives in Mixed Logit Model? …
How to get Stata to return where two variables intersect for the second timeHello everyone, I am modelling optimal marginal income tax rates. I use two models. One is very vol…
categorical timeID in tobit regression and LR test to decide between tobit and xttobitDear Statalist members. For my thesis, I am running a tobit regression with the DV being the owners…
Subscribe to:
Post Comments (Atom)
0 Response to Bootstrap for regression parametrs
Post a Comment