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
}
Related Posts with Bootstrap for regression parametrs
ML fails to convergeDear Stata experts, I have the following program to generate conditional skewness and kurtosis, whic…
Counting diseasesHi dear Statalist: I have a question. My dataset has 6764 subjects, from them 4142 have any disease…
Calculate difference between two clock timesHi, I have string data on start and end times of an activity in "hhmm" format. I want to find the t…
the format of number was transformed to string wrongly when using import excel, how to solve this?The varaiable id is number in excel, after importing to stata, it becomes string variable, how to co…
Counting diseasesHi dear Statalist: I have a question. My dataset has 6764 subjects, from them 4142 have any disease…
Subscribe to:
Post Comments (Atom)
0 Response to Bootstrap for regression parametrs
Post a Comment