[R] band matrices
Ott Toomet
otoomet at econ.dk
Wed May 19 15:14:57 CEST 2004
Hi,
are there routines for creating and manipulatin band matrices? I am
estimating a problem using penalised likelihood and I have to
calculate the penalty term (using notation by Green & Silvermann
(1994))
t(g) %*% Q %*% solve(R) %*% t(Q) %*% g
It can be done using diag(), some indexing, and perhaps sparseM
package. Are there better ways?
Thanks in advance,
Ott
--
Ott Toomet
PhD Student
Dept. of Economics
Århus University
Building 322
Universitetsparken
8000 Århus C
Denmark
otoomet (a) econ au dk
ph: (+45) 89 42 20 40
-------------------------------------------
(o_ (*_ (O_ (o< -!
//\ //\ //\ //\
V_/_ V_/_ V_/_ V_/_
standard drunken shocked noisy
penguin penguin penguin penguin
More information about the R-help
mailing list