gpls(x, ...)
"gpls"(x, y, K.prov=NULL, eps=1e-3, lmax=100, b.ini=NULL, denom.eps=1e-20, family="binomial", link=NULL, br=TRUE, ...)
"gpls"(formula, data, contrasts=NULL, K.prov=NULL,
eps=1e-3, lmax=100, b.ini=NULL, denom.eps=1e-20, family="binomial",
link=NULL, br=TRUE, ...)
y
is the response and the other terms are covariates.binomial
is the only relevant one here logit
is the only one practically
implemented nowcontrasts.arg
of
model.matrix.default
.gpls
with the following components:
family
argument that was passed in.link
argument that was passed in.glpls1a
. The interface is intended to be simpler to use
and more consistent with other matchine learning code in R. The technology is intended to deal with two class problems where
there are more predictors than cases. If a response variable
(y
) is used that has more than two levels the behavior may
be unusual.
glpls1a
library(MASS)
m1 = gpls(type~., data=Pima.tr, K=3)
Run the code above in your browser using DataLab