Compute ratio contrasts of chains of joint empirical distributions. For internal use.
CCRatio.default(x, cmat)
an N times K matrix with numeric entries
a list with entries numC
and denC
,
each containing a contrast matrix with K columns (must be the same K as in x!)
and M rows (is your choice, the number of contrasts of interest)
Denote the elements of x
by cmat
by cmat
as
CCRatio.default
simply calculates
# NOT RUN {
X<-round(cbind(
rnorm(10,1,1),
rnorm(10,1,1),
rnorm(10,1,1),
rnorm(10,1,1)))
# and numerator and denominator
# x times 4 contrast matrix
NMAT<-rbind(
c(1,0,0,0),
c(1,0,0,0),
c(1,0,0,0)
)
DMAT<-rbind(
c(0,1,0,0),
c(0,0,1,0),
c(0,0,0,1)
)
CCRatio.default(x=X, cmat=list(numC=NMAT, denC=DMAT) )
# }
Run the code above in your browser using DataLab