This function validates the specified correlation vector and/or matrix for appropriate dimension,
symmetry, range, and positive definiteness. If both correlation matrix and correlation vector were
supplied, it checks whether the matrix and vector are conformable.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(PoisBinNonNor)
Loading required package: BB
Loading required package: corpcor
Loading required package: Matrix
Loading required package: mvtnorm
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/PoisBinNonNor/validation.corr.Rd_%03d_medium.png", width=480, height=480)
> ### Name: validation.corr
> ### Title: Validates the specified correlation matrix
> ### Aliases: validation.corr
>
> ### ** Examples
>
> n.P<-1
> n.B<-1
> n.C<-1
> corr.vec=c(0.2,0.1,0.5)
> validation.corr(n.P,n.B,n.C,corr.vec,corr.mat=NULL)
[1] TRUE
>
> n.P<-2
> n.B<-2
> n.C<-2
> corr.mat=matrix(0.5,6,6)
> diag(corr.mat)=1
> validation.corr(n.P,n.B,n.C,corr.vec=NULL,corr.mat)
[1] TRUE
>
> ## Not run:
> ##D n.P<-2
> ##D n.B<-2
> ##D n.C<-1
> ##D corr.mat=matrix(0.5,6,6)
> ##D diag(corr.mat)=1
> ##D validation.corr(n.P,n.B,n.C,corr.vec=NULL,corr.mat)
> ##D
> ##D n.P<-2
> ##D n.B<-2
> ##D n.C<-2
> ##D corr.mat=matrix(0.5,6,6)
> ##D corr.mat[1,2]=0.4
> ##D diag(corr.mat)=1
> ##D validation.corr(n.P,n.B,n.C,corr.vec=NULL,corr.mat)
> ## End(Not run)
>
>
>
>
>
> dev.off()
null device
1
>