screeplot.gmd: Screeplot of the Generalized Matrix Decomposition

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/plotting.R

Description

Screeplot of the Generalized Matrix Decomposition

Usage

1
2
## S3 method for class 'gmd'
screeplot(fit)

Arguments

fit

An object of class "gmd" that is the output from GMD.

Details

The function screeplot.gmd plots the proportion of the variances explained by each GMD component of an object of class "gmd".

Author(s)

Parker Knight and Yue Wang ywang2310@fredhutch.org

References

Allen, G. I., L. Grosenick, and J. Taylor (2014). A generalized least-square matrix decom- position. Journal of the American Statistical Association 109(505), 145–159.

See Also

GMD

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
   X = matrix(rnorm(1000), 50, 20)
   autocorr.mat <- function(p, rho) {
     mat <- diag(p)
     return(rho^abs(row(mat)-col(mat)))
     }
   H = autocorr.mat(50, 0.6)
   Q = autocorr.mat(20, 0.7)
   GMD.fit = GMD(X, H, Q, 2)
   screeplot(GMD.fit)
   
## End(Not run)

taryue/GMDecomp documentation built on Nov. 5, 2019, 10 a.m.