dat.discr <- create.discr.matrix(
create.corr.matrix(
create.random.matrix(nvar = 50,
nsamp = 100,
st.dev = 1,
perturb = 0.2)),
D = 10
)
vars <- dat.discr$discr.mat
groups <- dat.discr$classes
fit <- fit.only.model(X=vars,
Y=groups,
method="plsda",
p = 0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.