[R] Bootstraps standard error

danielepippo danzur at hotmail.it
Mon Feb 21 17:42:23 CET 2011


Hi R-users,
 I've found the error.... 
In these rows: 
# Model (a) 
testtemp <- lm.bp(doctorco~sex+age+income, prescrib~sex+age+income,
data=bootdata) 
betafound <- c(testtemp$beta,testtemp$beta3) 
results[i,] <- betafound

betafound must to be equal to:
betafound <- c(testtemp$beta1,testtemp$beta2,testtemp$beta3) ...
Thanks a lot to everyone...
-- 
View this message in context: http://r.789695.n4.nabble.com/Bootstraps-standard-error-tp3313322p3317675.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list