Displaying 4 results from an estimated 4 matches for "ginverse".
Did you mean:
inverse
2006 Aug 16
0
confusing about contrasts concept [long]
...1 -1 -1
2 1 -1 -1
3 0 2 -1
4 0 0 3
The constraint vector is clearly v= (1,1,1,1), since the columns add to
zero. In this case the columns are also mutually orthogonal, so the
matrix (C'C^{-l} C' (the generalized inverse of C) has a similar form
apart from a few row divisors:
>fractions(ginverse(contr.helmert(4)))
[,1] [,2] [,3] [,4]
[1,] -1/2 1/2 0 0
[2,] -1/6 -1/6 1/3 0
[3,] -1/12 -1/12 -1/12 1/4
(ginverse() will be available in S+4.0 and fractions(), now available in
the MASS2 library, simply displays numbers in fractional form so that
patterns are more obvious).
Thus the phi's ar...
2002 Aug 13
8
Document R sourcecode with Tex
Hi,
I'm actually afraid that this is a RTFM question - I read the manual but
didn't find anything yet... I'm looking for a way to document R sourcecode
in my thesis. Does anyone know of a tool or function which can convert or
export R sourcecode to Tex?
Thanks for any hints!
Best Regards,
Daniel
2005 Jun 24
1
Mahalanobis distances
Dear R community
Have just recently got back into R after a long break and have been amazed at
how much it has grown, and how active the list is! Thank you so much to all
those who contribute to this amazing project.
My question:
I am trying to calculate Mahalanobis distances for a matrix called "fgmatrix"
>dim(fgmatrix)
[1] 76 15
>fg.cov <- cov.wt(fgmatrix)
2010 Nov 21
3
Can't invert matrix
Hi,
I'm trying to use the solve() function in R to invert a matrix. I get
the following error, "Lapack routine dgesv: system is exactly singular"
However, My matrix doesn't appear to be singular.
[,1] [,2] [,3] [,4]
[1,] 0.99252358 0.93715047 0.7540535 0.4579895
[2,] 0.01607797 0.09616267 0.2452471 0.3088614
[3,] 0.09772828 0.58451468 1.4907090