apart | R Documentation |
Decomposes a matrix with multiple columns of dependent variables into a
mdm
object
apart(X, dependent, use_rownames = TRUE)
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 |
Returns an object of class experiment
.
Robin K. S. Hankin
as.list
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.