Displaying 1 result from an estimated 1 matches for "designmatrx".
Did you mean:
designmatrix
2005 Apr 21
2
apply vs sapply vs loop - lm() call appl(y)ied on array
..., 2005 9:24 AM
To: R-help at stat.math.ethz.ch
Subject: [R] apply vs sapply vs loop - lm() call appl(y)ied on array
Dear useRs
(Code of the now mentioned small example is below)
I have 7 * 8 * 9 = 504 series of data (each length 5). For each of
theses series I want to compute a lm(), where the designmatrx X is the
same for all these computations.
The 504 series are in an array of dimension d.dim <- c(5, 7, 8, 9)
means, the first dimension holds the data-series.
The lm computation needs performance optimization, since in fact the
dimensions are much larger. I compared the following approaches:...