[R] my first post to the list

From: Rodrigo Briceņo <rjavierbriceno_at_gmail.com>
Date: Fri, 02 May 2008 11:54:28 -0600


Hello R-listers! My first post to the list is a very simple one for those who use the software continuosly. I am trying to understand the fixed-x resampling and random-x-resampling method proposed by Fox about Bootstrapping. The doubt that I have is on the side of the model run in one of the functions expressed for fixed-x resampling. What I don't understand is: X=model.matrix, and the -1 under mod= rlm. Please see below: #fixed x-resampling
fit <- fitted(mod.duncan.hub)
e <- residuals(mod.duncan.hub)
X <- model.matrix(mod.duncan.hub)
boot.huber.fixed <- function(data, indices, maxit=20){ y <- fit + e[indices]
mod <- rlm(y ~ X - 1, maxit=maxit)
coefficients(mod)
}
duncan.fix.boot <- boot(Duncan, boot.huber.fixed, 1999, maxit=100) duncan.fix.boot

I just need a quick explanation about WHAT the functions mean or do in this context.
Thanks

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 02 May 2008 - 18:47:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 02 May 2008 - 22:30:36 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive