nataraj at orchidpharma.com
2012-Jun-08 05:43 UTC
[R] Determinant and inverse using cholsky parameter
Dear R list members, I have a vector of Cholesky parameterization of a matrix let say A. I would like to compute the determinant and inverse of the original matrix A from the vector of cholesky parameters , would you suggest an R function to do the task. I have tried hard but unable to find anything like that. Please direct me any package or please share R code that can do the task. Thanks and regards, B.Nataraj [[alternative HTML version deleted]]
Hi, Isn't the Cholesky decomposition of A=L (L)^T where T stands for "transpose" and L is the Cholesky factor of A. You say you have the Cholesky decomposition, isn't it L (above)? A<-L%*%t(L) det(A) solve(A) would be your answer. Hope this helps Ozgur -- View this message in context: http://r.789695.n4.nabble.com/Determinant-and-inverse-using-cholsky-parameter-tp4632769p4632808.html Sent from the R help mailing list archive at Nabble.com.
Kjetil Halvorsen
2012-Jun-08 15:00 UTC
[R] Determinant and inverse using cholsky parameter
?chol2inv kjetil On Fri, Jun 8, 2012 at 1:43 AM, <nataraj at orchidpharma.com> wrote:> Dear R list members, > > I have a vector of Cholesky parameterization of a matrix let say A. I would like to compute the determinant and inverse of the original matrix A from the vector of cholesky parameters , would you suggest an R function to do the task. I have tried hard but unable to find anything like that. > > Please direct me any package or please share R code that can do the task. > > Thanks and regards, > B.Nataraj > > > ? ? ? ?[[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.
Possibly Parallel Threads
- Covariance matrix in R with non-numeric variables
- Understanding svd usage and its necessity in generalized inverse calculation
- Lapack, determinant, multivariate normal density, solution to linear system, C language
- Cholesky Decomposition
- matrix inverse in C