search for: logbmn

Displaying 1 result from an estimated 1 matches for "logbmn".

2013 May 05
1
slope coefficient of a quadratic regression bootstrap
...the package boot. I wrote a code for step 1 and got a error message. Please kindly advise how to modify it and thank you. Elaine code require(boot) function.fit2 <- function(data){ #data <- data[indices,] # select obs. in bootstrap sample fit2 <-lm(logDIS~logBMN+I(logBMN^2)) coefficients(fit2) # return coefficient vector } boot.fit2 <- boot(dataN, function.fit2, 1000) error > fit2.boot <- boot(dataN, fun.fit2, 1000) Error in statistic(data, original, ...) : unused argument (original) [[alternative HTML version...