apart {multivator} | R Documentation |
Decompose a matrix with multiple columns of dependent variables
Description
Decomposes a matrix with multiple columns of dependent variables into a
mdm
object
Usage
apart(X, dependent, use_rownames = TRUE)
Arguments
X |
A matrix with columns corresponding to either independent variables
or dependent variables. The names of the independent variables are
taken from the column names of |
dependent |
Vector of length |
use_rownames |
Boolean, with default |
Value
Returns an object of class experiment
.
Author(s)
Robin K. S. Hankin
See Also
Examples
data(e3mg)
apart(e3mg , 6:7)
a <- round(emulator::latin.hypercube(6,5),2)
rownames(a) <- c("first","second","third","fourth","fifth","sixth")
colnames(a) <- c(letters[1:3],"length","depth")
jj_expt <- apart(a,4:5) # use of apart()
x <- get_mdm(jj_expt[c(1,7)])
xold(x) <- 0.5
multem(x,jj_expt,hp=as.mhp(x),give=TRUE)
[Package multivator version 1.1-11 Index]