[R] Lapack error in Design:::ols

From: Gad Abraham <gabraham_at_csse.unimelb.edu.au>
Date: Thu, 03 Apr 2008 22:25:37 +1100


I'm trying to use Frank Harrell's Design:::ols function to do regression of y (numeric) on the interaction of two factors (x1 and x2), but Lapack throws an error:

> library(Design)

> load(url("
> ols(y ~ x1 * x2, data=x)

Error in chol2inv(fit$qr$qr) : 'size' cannot exceed nrow(x) = 20
> traceback()

6: .Call("La_chol2inv", x, size, PACKAGE = "base")
5: chol2inv(fit$qr$qr)
4: ols(y ~ x1 * x2, data = x)
3: eval.with.vis(expr, envir, enclos)
2: eval.with.vis(ei, envir)
1: source("t.R", echo = TRUE)

Any ideas?


> sessionInfo()

R version 2.6.2 (2008-02-08)



attached base packages:
[1] splines   stats     graphics  grDevices utils     datasets  methods
[8] base

other attached packages:
[1] Design_2.1-1 survival_2.34 Hmisc_3.4-3

loaded via a namespace (and not attached): [1] cluster_1.11.9 grid_2.6.2 lattice_0.17-4 rcompgen_0.1-17

Gad Abraham
Dept. CSSE and NICTA
The University of Melbourne
Parkville 3010, Victoria, Australia
email: gabraham_at_csse.unimelb.edu.au
web: http://www.csse.unimelb.edu.au/~gabraham

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 03 Apr 2008 - 11:36:58 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 Thu 03 Apr 2008 - 13:30:25 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