[R] segmentation fault with Hmisc areg.boot()
Frank E Harrell Jr
f.harrell at vanderbilt.edu
Thu Feb 16 20:49:02 CET 2006
Martin Henry H. Stevens wrote:
> Hi Folks,
> Mac OS 10.4.4
> R 2.2.1(2005-12-20 r36812)
> Hmisc 3.0-10
> acepack 1.3-2.2
>
> I keep getting a "segmentation fault" when trying to run areg.boot in
> the Hmisc package. I include below output from two different attempts.
> Thank you in advance for any help.
>
> Hank Stevens
>
> The following is taken from the example in the areg.boot
> documentation, run inside Aquamacs Emacs:
>
> > set.seed(171) # to be able to reproduce example
> > x1 <- rnorm(200)
> > x2 <- runif(200) # a variable that is really unrelated to y]
> > x3 <- factor(sample(c('cat','dog','cow'), 200,TRUE)) # also
> unrelated to y
> > y <- exp(x1 + rnorm(200)/3)
> > f <- areg.boot(y ~ x1 + x2 + x3, B=40)
Works fine on debian linux with same versions
Frank
P.S. In future it's best to omit prompts from lines of code for easy
pasting into the R prompt.
More information about the R-help
mailing list