View source: R/model.frame.asca.R
model.frame.asca | R Documentation |
Extraction functions to retrieve the model.frame
and model.matrix
of an asca
object.
## S3 method for class 'asca'
model.frame(formula, ...)
## S3 method for class 'asca'
model.matrix(object, ...)
formula |
The |
... |
Not implemented |
object |
The |
A data.frame
or matrix
object.
# Load candies data
data(candies)
# Basic ASCA model with two factors
mod <- asca(assessment ~ candy + assessor, data=candies)
# Extract model frame and model matrix
mf <- model.frame(mod)
head(mf)
mm <- model.matrix(mod)
par.old <- par(mar=c(3,3,3,1), mgp=c(1,0.7,0))
image(t(mm[seq(165,1,-1),]), main="Model Matrix", xlab="dummy values", ylab="samples",
axes=FALSE)
par(par.old)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.