I have a panel data regression
I would like to find the bootstrapped estimation of coefficients
Here is what I do normally for panel regression
Original
xtset ID YEAR
xtreg DV IV c.IV#c.Moderator Moderator i.YEAR if YEAR < 2022, vce(cluster ID) fe
There are 2 ways of finding bootstrapped estimation
Method 1
xtreg DV IV c.IV#c.Moderator i.YEAR if YEAR < 2022, vce(bootstrap, reps(500) seed(123)) cluster(ID) fe
Method 2
program define bootstrap
xtreg DV IV c.IV#c.Moderator i.YEAR if YEAR < 2022, vce(cluster ID) fe
end
bootstrap, reps(500) seed(123): bootstrap
When I run Original, without bootstrap, most effects are significant
When I use Method 1, most effects are not significant
When I use Method 2, most effects are significant, similar to Original
I wonder:
How Method 1 is different from Method 2, in terms of internal mechanisms, resampling process, estimation, etc.
Which method I should use?
Thank you.
I would like to find the bootstrapped estimation of coefficients
Here is what I do normally for panel regression
Original
xtset ID YEAR
xtreg DV IV c.IV#c.Moderator Moderator i.YEAR if YEAR < 2022, vce(cluster ID) fe
There are 2 ways of finding bootstrapped estimation
Method 1
xtreg DV IV c.IV#c.Moderator i.YEAR if YEAR < 2022, vce(bootstrap, reps(500) seed(123)) cluster(ID) fe
Method 2
program define bootstrap
xtreg DV IV c.IV#c.Moderator i.YEAR if YEAR < 2022, vce(cluster ID) fe
end
bootstrap, reps(500) seed(123): bootstrap
When I run Original, without bootstrap, most effects are significant
When I use Method 1, most effects are not significant
When I use Method 2, most effects are significant, similar to Original
I wonder:
How Method 1 is different from Method 2, in terms of internal mechanisms, resampling process, estimation, etc.
Which method I should use?
Thank you.
Comment