Title: | Partial Least Squares Regression for Beta Regression Models |
---|---|
Description: | Provides Partial least squares Regression for (weighted) beta regression models (Bertrand 2013, <http://journal-sfds.fr/article/view/215>) and k-fold cross-validation of such models using various criteria. It allows for missing data in the explanatory variables. Bootstrap confidence intervals constructions are also available. |
Authors: | Frederic Bertrand [cre, aut] , Myriam Maumy-Bertrand [aut] |
Maintainer: | Frederic Bertrand <[email protected]> |
License: | GPL-3 |
Version: | 0.3.0 |
Built: | 2025-01-25 03:04:20 UTC |
Source: | https://github.com/fbertran/plsrbeta |
Provides Partial least squares Regression for (weighted) beta regression models (Bertrand 2013, <http://journal-sfds.fr/article/view/215>) and k-fold cross-validation of such models using various criteria. It allows for missing data in the explanatory variables. Bootstrap confidence intervals constructions are also available.
Partial least squares Regression for (weighted) beta regression models (Bertrand 2013, <http://journal-sfds.fr/article/view/215>), https://github.com/fbertran/plsRbeta/ et https://fbertran.github.io/plsRbeta/
data("GasolineYield",package="betareg") modpls <- plsRbeta(yield~.,data=GasolineYield,nt=3,modele="pls-beta") modpls$pp modpls$Coeffs modpls$Std.Coeffs modpls$InfCrit modpls$PredictY[1,] rm("modpls") data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] modpls <- plsRbeta(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") modpls$pp modpls$Coeffs modpls$Std.Coeffs modpls$InfCrit modpls$PredictY[1,] rm("modpls")
data("GasolineYield",package="betareg") modpls <- plsRbeta(yield~.,data=GasolineYield,nt=3,modele="pls-beta") modpls$pp modpls$Coeffs modpls$Std.Coeffs modpls$InfCrit modpls$PredictY[1,] rm("modpls") data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] modpls <- plsRbeta(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") modpls$pp modpls$Coeffs modpls$Std.Coeffs modpls$InfCrit modpls$PredictY[1,] rm("modpls")
Provides a wrapper for the bootstrap function boot
from the
boot
R package.
Implements non-parametric bootstrap for PLS beta
regression models by case resampling.
bootplsbeta( object, typeboot = "plsmodel", R = 250, statistic = NULL, sim = "ordinary", stype = "i", stabvalue = 1e+06, ... )
bootplsbeta( object, typeboot = "plsmodel", R = 250, statistic = NULL, sim = "ordinary", stype = "i", stabvalue = 1e+06, ... )
object |
An object of class |
typeboot |
The type of bootstrap. Either (Y,X) boostrap
( |
R |
The number of bootstrap replicates. Usually this will be a single
positive integer. For importance resampling, some resamples may use one set
of weights and others use a different set of weights. In this case |
statistic |
A function which when applied to data returns a vector
containing the statistic(s) of interest. |
sim |
A character string indicating the type of simulation required.
Possible values are |
stype |
A character string indicating what the second argument of
|
stabvalue |
A value to hard threshold bootstrap estimates computed from atypical resamplings. |
... |
Other named arguments for |
More details on bootstrap techniques are available in the help of the
boot
function.
An object of class "boot"
. See the Value part of the help of
the function boot
.
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
data("GasolineYield",package="betareg") # Std coefficients modplsbeta <- plsRbeta(yield~., data=GasolineYield, nt=3, modele="pls-beta") GazYield.boot <- bootplsbeta(modplsbeta, sim="ordinary", stype="i", R=250) boot::boot.ci(GazYield.boot, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=1) boot::boot.ci(GazYield.boot, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=2) boot::boot.ci(GazYield.boot, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=3) boot::boot.ci(GazYield.boot, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=4) boot::boot.ci(GazYield.boot, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=5) boot::boot.ci(GazYield.boot, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=6) plsRglm::boxplots.bootpls(GazYield.boot) plsRglm::confints.bootpls(GazYield.boot) plsRglm::plots.confints.bootpls(plsRglm::confints.bootpls(GazYield.boot)) #Raw coefficients modplsbeta <- plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta") GazYield.boot.raw <- bootplsbeta(modplsbeta, sim="ordinary", stype="i", R=250, statistic=coefs.plsRbeta.raw) boot::boot.ci(GazYield.boot.raw, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=1) boot::boot.ci(GazYield.boot.raw, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=2) boot::boot.ci(GazYield.boot.raw, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=3) boot::boot.ci(GazYield.boot.raw, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=4) boot::boot.ci(GazYield.boot.raw, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=5) boot::boot.ci(GazYield.boot.raw, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=6) plsRglm::boxplots.bootpls(GazYield.boot.raw) plsRglm::confints.bootpls(GazYield.boot.raw) plsRglm::plots.confints.bootpls(plsRglm::confints.bootpls(GazYield.boot.raw)) plot(GazYield.boot.raw,index=2) boot::jack.after.boot(GazYield.boot.raw, index=2, useJ=TRUE, nt=3) plot(GazYield.boot.raw, index=2,jack=TRUE) # PLS bootstrap balanced GazYield.boot.bal <- bootplsbeta(plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta"), sim="balanced", stype="i", R=250) boot::boot.ci(GazYield.boot.bal, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=1) boot::boot.ci(GazYield.boot.bal, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=2) boot::boot.ci(GazYield.boot.bal, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=3) boot::boot.ci(GazYield.boot.bal, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=4) boot::boot.ci(GazYield.boot.bal, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=5) boot::boot.ci(GazYield.boot.bal, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=6) plsRglm::boxplots.bootpls(GazYield.boot.bal) plsRglm::confints.bootpls(GazYield.boot.bal) plsRglm::plots.confints.bootpls(plsRglm::confints.bootpls(GazYield.boot.bal)) plot(GazYield.boot.bal) boot::jack.after.boot(GazYield.boot.bal, index=1, useJ=TRUE, nt=3) plot(GazYield.boot.bal,jack=TRUE) # PLS permutation bootstrap GazYield.boot.perm <- bootplsbeta(plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta"), sim="permutation", stype="i", R=250) boot::boot.ci(GazYield.boot.perm, conf = c(0.90,0.95), type = c("norm","basic","perc"), index=1) boot::boot.ci(GazYield.boot.perm, conf = c(0.90,0.95), type = c("norm","basic","perc"), index=2) boot::boot.ci(GazYield.boot.perm, conf = c(0.90,0.95), type = c("norm","basic","perc"), index=3) boot::boot.ci(GazYield.boot.perm, conf = c(0.90,0.95), type = c("norm","basic","perc"), index=4) boot::boot.ci(GazYield.boot.perm, conf = c(0.90,0.95), type = c("norm","basic","perc"), index=5) boot::boot.ci(GazYield.boot.perm, conf = c(0.90,0.95), type = c("norm","basic","perc"), index=6) plsRglm::boxplots.bootpls(GazYield.boot.perm) plot(GazYield.boot.perm)
data("GasolineYield",package="betareg") # Std coefficients modplsbeta <- plsRbeta(yield~., data=GasolineYield, nt=3, modele="pls-beta") GazYield.boot <- bootplsbeta(modplsbeta, sim="ordinary", stype="i", R=250) boot::boot.ci(GazYield.boot, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=1) boot::boot.ci(GazYield.boot, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=2) boot::boot.ci(GazYield.boot, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=3) boot::boot.ci(GazYield.boot, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=4) boot::boot.ci(GazYield.boot, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=5) boot::boot.ci(GazYield.boot, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=6) plsRglm::boxplots.bootpls(GazYield.boot) plsRglm::confints.bootpls(GazYield.boot) plsRglm::plots.confints.bootpls(plsRglm::confints.bootpls(GazYield.boot)) #Raw coefficients modplsbeta <- plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta") GazYield.boot.raw <- bootplsbeta(modplsbeta, sim="ordinary", stype="i", R=250, statistic=coefs.plsRbeta.raw) boot::boot.ci(GazYield.boot.raw, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=1) boot::boot.ci(GazYield.boot.raw, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=2) boot::boot.ci(GazYield.boot.raw, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=3) boot::boot.ci(GazYield.boot.raw, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=4) boot::boot.ci(GazYield.boot.raw, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=5) boot::boot.ci(GazYield.boot.raw, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=6) plsRglm::boxplots.bootpls(GazYield.boot.raw) plsRglm::confints.bootpls(GazYield.boot.raw) plsRglm::plots.confints.bootpls(plsRglm::confints.bootpls(GazYield.boot.raw)) plot(GazYield.boot.raw,index=2) boot::jack.after.boot(GazYield.boot.raw, index=2, useJ=TRUE, nt=3) plot(GazYield.boot.raw, index=2,jack=TRUE) # PLS bootstrap balanced GazYield.boot.bal <- bootplsbeta(plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta"), sim="balanced", stype="i", R=250) boot::boot.ci(GazYield.boot.bal, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=1) boot::boot.ci(GazYield.boot.bal, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=2) boot::boot.ci(GazYield.boot.bal, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=3) boot::boot.ci(GazYield.boot.bal, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=4) boot::boot.ci(GazYield.boot.bal, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=5) boot::boot.ci(GazYield.boot.bal, conf = c(0.90,0.95), type = c("norm","basic","perc","bca"), index=6) plsRglm::boxplots.bootpls(GazYield.boot.bal) plsRglm::confints.bootpls(GazYield.boot.bal) plsRglm::plots.confints.bootpls(plsRglm::confints.bootpls(GazYield.boot.bal)) plot(GazYield.boot.bal) boot::jack.after.boot(GazYield.boot.bal, index=1, useJ=TRUE, nt=3) plot(GazYield.boot.bal,jack=TRUE) # PLS permutation bootstrap GazYield.boot.perm <- bootplsbeta(plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta"), sim="permutation", stype="i", R=250) boot::boot.ci(GazYield.boot.perm, conf = c(0.90,0.95), type = c("norm","basic","perc"), index=1) boot::boot.ci(GazYield.boot.perm, conf = c(0.90,0.95), type = c("norm","basic","perc"), index=2) boot::boot.ci(GazYield.boot.perm, conf = c(0.90,0.95), type = c("norm","basic","perc"), index=3) boot::boot.ci(GazYield.boot.perm, conf = c(0.90,0.95), type = c("norm","basic","perc"), index=4) boot::boot.ci(GazYield.boot.perm, conf = c(0.90,0.95), type = c("norm","basic","perc"), index=5) boot::boot.ci(GazYield.boot.perm, conf = c(0.90,0.95), type = c("norm","basic","perc"), index=6) plsRglm::boxplots.bootpls(GazYield.boot.perm) plot(GazYield.boot.perm)
Returns the coefficients of a "plsRbeta"
model.
coefs.plsRbeta( dataset, ind, nt, modele, family = NULL, method = "logistic", link = NULL, link.phi = NULL, type = "ML", maxcoefvalues, ifbootfail, verbose = TRUE )
coefs.plsRbeta( dataset, ind, nt, modele, family = NULL, method = "logistic", link = NULL, link.phi = NULL, type = "ML", maxcoefvalues, ifbootfail, verbose = TRUE )
dataset |
dataset to resample |
ind |
indices for resampling |
nt |
number of components to use |
modele |
name of the PLS glm or PLS beta model to be fitted
( |
family |
family to use if GLM model, see plsRbeta |
method |
method for beta regression |
link |
link for beta regression |
link.phi |
link.phi for beta regression |
type |
type of estimates |
maxcoefvalues |
maximum values allowed for the estimates of the coefficients to discard those coming from singular bootstrap samples |
ifbootfail |
value to return if the estimation fails on a bootstrap sample |
verbose |
should info messages be displayed ? |
Coefficients' Estimates on a sample.
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
See also bootplsbeta
.
data("GasolineYield",package="betareg") bootplsbeta(plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta"), typeboot="plsmodel", R=250, statistic=coefs.plsRbeta)
data("GasolineYield",package="betareg") bootplsbeta(plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta"), typeboot="plsmodel", R=250, statistic=coefs.plsRbeta)
Returns the coefficients of a "plsRbeta"
model.
coefs.plsRbeta.raw( dataset, ind, nt, modele, family = NULL, method = "logistic", link = NULL, link.phi = NULL, type = "ML", maxcoefvalues, ifbootfail, verbose = TRUE )
coefs.plsRbeta.raw( dataset, ind, nt, modele, family = NULL, method = "logistic", link = NULL, link.phi = NULL, type = "ML", maxcoefvalues, ifbootfail, verbose = TRUE )
dataset |
dataset to resample |
ind |
indices for resampling |
nt |
number of components to use |
modele |
name of the PLS glm or PLS beta model to be fitted
( |
family |
family to use if GLM model, see plsRbeta |
method |
method for beta regression |
link |
link for beta regression |
link.phi |
link.phi for beta regression |
type |
type of estimates |
maxcoefvalues |
maximum values allowed for the estimates of the coefficients to discard those coming from singular bootstrap samples |
ifbootfail |
value to return if the estimation fails on a bootstrap sample |
verbose |
should info messages be displayed ? |
Coefficients' Estimates on a sample.
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
See also bootplsbeta
.
data("GasolineYield",package="betareg") bootplsbeta(plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta"), typeboot="fmodel_par", R=250, statistic=coefs.plsRbeta.raw)
data("GasolineYield",package="betareg") bootplsbeta(plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta"), typeboot="fmodel_par", R=250, statistic=coefs.plsRbeta.raw)
A function passed to boot
to perform bootstrap.
coefs.plsRbetanp( dataRepYtt, ind, nt, modele, family = NULL, method = "logistic", link = NULL, link.phi = NULL, type = "ML", verbose = TRUE, maxcoefvalues, wwetoile, ifbootfail )
coefs.plsRbetanp( dataRepYtt, ind, nt, modele, family = NULL, method = "logistic", link = NULL, link.phi = NULL, type = "ML", verbose = TRUE, maxcoefvalues, wwetoile, ifbootfail )
dataRepYtt |
components' coordinates to bootstrap |
ind |
indices for resampling |
nt |
number of components to use |
modele |
type of modele to use, see plsRbeta |
family |
glm family to use, see plsRbeta |
method |
method for beta regression |
link |
link for beta regression |
link.phi |
link.phi for beta regression |
type |
type of estimates |
verbose |
should info messages be displayed ? |
maxcoefvalues |
maximum values allowed for the estimates of the coefficients to discard those coming from singular bootstrap samples |
wwetoile |
values of the Wstar matrix in the original fit |
ifbootfail |
value to return if the estimation fails on a bootstrap sample |
estimates on a bootstrap sample or ifbootfail
value if the
bootstrap computation fails.
~~some notes~~
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
See also bootplsbeta
data("GasolineYield",package="betareg") bootplsbeta(plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta"), typeboot="fmodel_np", R=250, statistic=coefs.plsRbetanp)
data("GasolineYield",package="betareg") bootplsbeta(plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta"), typeboot="fmodel_np", R=250, statistic=coefs.plsRbetanp)
This dataset feature tumor rate data with spectral data descriptors. It is used as an example in the second vignette of the package.
colon
colon
A data frame with 80 observations on the following 180 variables.
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(colon) str(colon)
data(colon) str(colon)
Variable selection results for the vignette.
ind_BCa_nt1BC
ind_BCa_nt1BC
Logical vector of length 60.
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(ind_BCa_nt1BC) ## maybe str(ind_BCa_nt1BC) ; plot(ind_BCa_nt1BC) ...
data(ind_BCa_nt1BC) ## maybe str(ind_BCa_nt1BC) ; plot(ind_BCa_nt1BC) ...
Variable selection results for the vignette.
ind_BCa_nt1BR
ind_BCa_nt1BR
Logical vector of length 60.
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(ind_BCa_nt1BR) ## maybe str(ind_BCa_nt1BR) ; plot(ind_BCa_nt1BR) ...
data(ind_BCa_nt1BR) ## maybe str(ind_BCa_nt1BR) ; plot(ind_BCa_nt1BR) ...
Variable selection results for the vignette.
ind_BCa_nt2BC
ind_BCa_nt2BC
Logical vector of length 60.
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(ind_BCa_nt2BC) ## maybe str(ind_BCa_nt2BC) ; plot(ind_BCa_nt2BC) ...
data(ind_BCa_nt2BC) ## maybe str(ind_BCa_nt2BC) ; plot(ind_BCa_nt2BC) ...
Variable selection results for the vignette.
ind_BCa_nt2BR
ind_BCa_nt2BR
Logical vector of length 60.
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(ind_BCa_nt2BR) ## maybe str(ind_BCa_nt2BR) ; plot(ind_BCa_nt2BR) ...
data(ind_BCa_nt2BR) ## maybe str(ind_BCa_nt2BR) ; plot(ind_BCa_nt2BR) ...
Variable selection results for the vignette.
ind_BCa_nt3
ind_BCa_nt3
Logical vector of length 60.
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(ind_BCa_nt3) ## maybe str(ind_BCa_nt3) ; plot(ind_BCa_nt3) ...
data(ind_BCa_nt3) ## maybe str(ind_BCa_nt3) ; plot(ind_BCa_nt3) ...
Variable selection results for the vignette.
ind_BCa_nt3BC
ind_BCa_nt3BC
Logical vector of length 60.
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(ind_BCa_nt3BC) ## maybe str(ind_BCa_nt3BC) ; plot(ind_BCa_nt3BC) ...
data(ind_BCa_nt3BC) ## maybe str(ind_BCa_nt3BC) ; plot(ind_BCa_nt3BC) ...
Variable selection results for the vignette.
ind_BCa_nt3BR
ind_BCa_nt3BR
Logical vector of length 60.
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(ind_BCa_nt3BR) ## maybe str(ind_BCa_nt3BR) ; plot(ind_BCa_nt3BR) ...
data(ind_BCa_nt3BR) ## maybe str(ind_BCa_nt3BR) ; plot(ind_BCa_nt3BR) ...
Variable selection results for the vignette.
ind_BCa_nt4BC
ind_BCa_nt4BC
Logical vector of length 60.
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(ind_BCa_nt4BC) ## maybe str(ind_BCa_nt4BC) ; plot(ind_BCa_nt4BC) ...
data(ind_BCa_nt4BC) ## maybe str(ind_BCa_nt4BC) ; plot(ind_BCa_nt4BC) ...
Variable selection results for the vignette.
ind_BCa_nt4BR
ind_BCa_nt4BR
Logical vector of length 60.
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(ind_BCa_nt4BR) ## maybe str(ind_BCa_nt4BR) ; plot(ind_BCa_nt4BR) ...
data(ind_BCa_nt4BR) ## maybe str(ind_BCa_nt4BR) ; plot(ind_BCa_nt4BR) ...
Variable selection results for the vignette.
ind_BCa_nt5BC
ind_BCa_nt5BC
Logical vector of length 60.
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(ind_BCa_nt5BC) ## maybe str(ind_BCa_nt5BC) ; plot(ind_BCa_nt5BC) ...
data(ind_BCa_nt5BC) ## maybe str(ind_BCa_nt5BC) ; plot(ind_BCa_nt5BC) ...
Variable selection results for the vignette.
ind_BCa_nt5BR
ind_BCa_nt5BR
Logical vector of length 60.
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(ind_BCa_nt5BR) ## maybe str(ind_BCa_nt5BR) ; plot(ind_BCa_nt5BR) ...
data(ind_BCa_nt5BR) ## maybe str(ind_BCa_nt5BR) ; plot(ind_BCa_nt5BR) ...
Variable selection results for the vignette.
ind_BCa_nt6BC
ind_BCa_nt6BC
Logical vector of length 60.
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(ind_BCa_nt6BC) ## maybe str(ind_BCa_nt6BC) ; plot(ind_BCa_nt6BC) ...
data(ind_BCa_nt6BC) ## maybe str(ind_BCa_nt6BC) ; plot(ind_BCa_nt6BC) ...
Variable selection results for the vignette.
ind_BCa_nt6BR
ind_BCa_nt6BR
Logical vector of length 60.
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(ind_BCa_nt6BR) ## maybe str(ind_BCa_nt6BR) ; plot(ind_BCa_nt6BR) ...
data(ind_BCa_nt6BR) ## maybe str(ind_BCa_nt6BR) ; plot(ind_BCa_nt6BR) ...
This function computes Predicted Chisquare for kfold cross validated partial least squares beta regression models.
kfolds2Chisq(pls_kfolds)
kfolds2Chisq(pls_kfolds)
pls_kfolds |
a kfold cross validated partial least squares regression glm model |
list |
Total Predicted Chisquare vs number of components for the first group partition |
list() |
... |
list |
Total Predicted Chisquare vs number of components for the last group partition |
Use PLS_beta_kfoldcv
to create kfold cross validated
partial least squares regression glm and beta models.
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
kfolds2coeff
,
kfolds2Press
, kfolds2Pressind
,
kfolds2Chisqind
, kfolds2Mclassedind
and
kfolds2Mclassed
to extract and transforms results
from kfold cross validation.
## Not run: data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] bbb <- PLS_beta_kfoldcv(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") kfolds2Chisq(bbb) ## End(Not run)
## Not run: data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] bbb <- PLS_beta_kfoldcv(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") kfolds2Chisq(bbb) ## End(Not run)
This function computes individual Predicted Chisquare for kfold cross validated partial least squares beta regression models.
kfolds2Chisqind(pls_kfolds)
kfolds2Chisqind(pls_kfolds)
pls_kfolds |
a kfold cross validated partial least squares regression glm model |
list |
Individual PChisq vs number of components for the first group partition |
list() |
... |
list |
Individual PChisq vs number of components for the last group partition |
Use PLS_beta_kfoldcv
to create kfold cross validated
partial least squares regression glm models.
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
kfolds2coeff
,
kfolds2Press
, kfolds2Pressind
,
kfolds2Chisq
, kfolds2Mclassedind
and
kfolds2Mclassed
to extract and transforms results
from kfold cross validation.
## Not run: data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] bbb <- PLS_beta_kfoldcv(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") kfolds2Chisqind(bbb) ## End(Not run)
## Not run: data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] bbb <- PLS_beta_kfoldcv(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") kfolds2Chisqind(bbb) ## End(Not run)
This function extracts and computes information criteria and fits statistics for kfold cross validated partial least squares beta regression models for both formula or classic specifications of the model.
kfolds2CVinfos_beta(pls_kfolds, MClassed = FALSE)
kfolds2CVinfos_beta(pls_kfolds, MClassed = FALSE)
pls_kfolds |
an object computed using |
MClassed |
should number of miss classed be computed |
The Mclassed option should only set to TRUE
if the response is
binary.
list |
table of fit statistics for first group partition |
list() |
... |
list |
table of fit statistics for last group partition |
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
kfolds2coeff
,
kfolds2Pressind
, kfolds2Press
,
kfolds2Mclassedind
and
kfolds2Mclassed
to extract and transforms results
from kfold cross validation.
## Not run: data("GasolineYield",package="betareg") bbb <- PLS_beta_kfoldcv_formula(yield~.,data=GasolineYield,nt=3,modele="pls-beta") kfolds2CVinfos_beta(bbb) ## End(Not run)
## Not run: data("GasolineYield",package="betareg") bbb <- PLS_beta_kfoldcv_formula(yield~.,data=GasolineYield,nt=3,modele="pls-beta") kfolds2CVinfos_beta(bbb) ## End(Not run)
A precomputed four components plsRbetamodel fitted to a subset of an example dataset and used in the vignette.
modpls_sub4
modpls_sub4
a class plsRbetamodel object
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(modpls_sub4) str(modpls_sub4)
data(modpls_sub4) str(modpls_sub4)
A precomputed bootstrap distribution of the coefficients of a model used in the vignette.
modpls.boot3
modpls.boot3
a class boot object
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(modpls.boot3) str(modpls.boot3) plot(modpls.boot3)
data(modpls.boot3) str(modpls.boot3) plot(modpls.boot3)
A function passed to boot
to perform bootstrap.
permcoefs.plsRbeta( dataset, ind, nt, modele, family = NULL, method = "logistic", link = "logit", link.phi = NULL, type = "ML", maxcoefvalues, ifbootfail, verbose = TRUE )
permcoefs.plsRbeta( dataset, ind, nt, modele, family = NULL, method = "logistic", link = "logit", link.phi = NULL, type = "ML", maxcoefvalues, ifbootfail, verbose = TRUE )
dataset |
dataset to resample |
ind |
indices for resampling |
nt |
number of components to use |
modele |
name of the PLS glm or PLS beta model to be fitted
( |
family |
family to use if GLM model, see plsRbeta |
method |
method for beta regression |
link |
link for beta regression |
link.phi |
link.phi for beta regression |
type |
type of estimates |
maxcoefvalues |
maximum values allowed for the estimates of the coefficients to discard those coming from singular bootstrap samples |
ifbootfail |
value to return if the estimation fails on a |
verbose |
should info messages be displayed ? |
Estimates on a bootstrap sample.
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
See also bootplsbeta
.
data("GasolineYield",package="betareg") GazYield.boot <- bootplsbeta(plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta", verbose=FALSE), sim="ordinary", stype="i", R=250, statistic=permcoefs.plsRbeta)
data("GasolineYield",package="betareg") GazYield.boot <- bootplsbeta(plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta", verbose=FALSE), sim="ordinary", stype="i", R=250, statistic=permcoefs.plsRbeta)
A function passed to boot
to perform bootstrap.
permcoefs.plsRbeta.raw( dataset, ind, nt, modele, family = NULL, method = "logistic", link = "logit", link.phi = NULL, type = "ML", maxcoefvalues, ifbootfail, verbose = TRUE )
permcoefs.plsRbeta.raw( dataset, ind, nt, modele, family = NULL, method = "logistic", link = "logit", link.phi = NULL, type = "ML", maxcoefvalues, ifbootfail, verbose = TRUE )
dataset |
dataset to resample |
ind |
indices for resampling |
nt |
number of components to use |
modele |
name of the PLS glm or PLS beta model to be fitted
( |
family |
family to use if GLM model, see plsRbeta |
method |
method for beta regression |
link |
link for beta regression |
link.phi |
link.phi for beta regression |
type |
type of estimates |
maxcoefvalues |
maximum values allowed for the estimates of the coefficients to discard those coming from singular bootstrap samples |
ifbootfail |
value to return if the estimation fails on a |
verbose |
should info messages be displayed ? |
Estimates on a bootstrap sample.
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
See also bootplsbeta
.
data("GasolineYield",package="betareg") modplsbeta <- plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta") GazYield.boot.raw <- bootplsbeta(modplsbeta, sim="permutation", stype="i", R=250, statistic=coefs.plsRbeta.raw)
data("GasolineYield",package="betareg") modplsbeta <- plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta") GazYield.boot.raw <- bootplsbeta(modplsbeta, sim="permutation", stype="i", R=250, statistic=coefs.plsRbeta.raw)
A function passed to boot
to perform bootstrap.
permcoefs.plsRbetanp( dataRepYtt, ind, nt, modele, family = NULL, maxcoefvalues, wwetoile, ifbootfail )
permcoefs.plsRbetanp( dataRepYtt, ind, nt, modele, family = NULL, maxcoefvalues, wwetoile, ifbootfail )
dataRepYtt |
components' coordinates to bootstrap |
ind |
indices for resampling |
nt |
number of components to use |
modele |
type of modele to use, see plsRbeta |
family |
glm family to use, see plsRbeta |
maxcoefvalues |
maximum values allowed for the estimates of the coefficients to discard those coming from singular bootstrap samples |
wwetoile |
values of the Wstar matrix in the original fit |
ifbootfail |
value to return if the estimation fails on a bootstrap sample |
estimates on a bootstrap sample or ifbootfail
value if the
bootstrap computation fails.
~~some notes~~
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
See also bootplsbeta
data("GasolineYield",package="betareg") modplsbeta <- plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta") bootplsbeta(modplsbeta, R=250, statistic=permcoefs.plsRbetanp, typeboot="fmodel_np")
data("GasolineYield",package="betareg") modplsbeta <- plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta") bootplsbeta(modplsbeta, R=250, statistic=permcoefs.plsRbetanp, typeboot="fmodel_np")
This function implements Partial least squares beta regression models on complete or incomplete datasets.
PLS_beta( dataY, dataX, nt = 2, limQ2set = 0.0975, dataPredictY = dataX, modele = "pls", family = NULL, typeVC = "none", EstimXNA = FALSE, scaleX = TRUE, scaleY = NULL, pvals.expli = FALSE, alpha.pvals.expli = 0.05, MClassed = FALSE, tol_Xi = 10^(-12), weights, method, sparse = FALSE, sparseStop = TRUE, naive = FALSE, link = NULL, link.phi = NULL, type = "ML", verbose = TRUE )
PLS_beta( dataY, dataX, nt = 2, limQ2set = 0.0975, dataPredictY = dataX, modele = "pls", family = NULL, typeVC = "none", EstimXNA = FALSE, scaleX = TRUE, scaleY = NULL, pvals.expli = FALSE, alpha.pvals.expli = 0.05, MClassed = FALSE, tol_Xi = 10^(-12), weights, method, sparse = FALSE, sparseStop = TRUE, naive = FALSE, link = NULL, link.phi = NULL, type = "ML", verbose = TRUE )
dataY |
response (training) dataset |
dataX |
predictor(s) (training) dataset |
nt |
number of components to be extracted |
limQ2set |
limit value for the Q2 |
dataPredictY |
predictor(s) (testing) dataset |
modele |
name of the PLS glm or PLS beta model to be fitted
( |
family |
a description of the error distribution and link function to
be used in the model. This can be a character string naming a family
function, a family function or the result of a call to a family function.
(See |
typeVC |
type of leave one out cross validation. For back compatibility purpose.
|
EstimXNA |
only for |
scaleX |
scale the predictor(s) : must be set to TRUE for
|
scaleY |
scale the response : Yes/No. Ignored since not always possible for glm responses. |
pvals.expli |
should individual p-values be reported to tune model selection ? |
alpha.pvals.expli |
level of significance for predictors when pvals.expli=TRUE |
MClassed |
number of missclassified cases, should only be used for binary responses |
tol_Xi |
minimal value for Norm2(Xi) and |
weights |
an optional vector of 'prior weights' to be used in the
fitting process. Should be |
method |
the link function for |
sparse |
should the coefficients of non-significant predictors
(< |
sparseStop |
should component extraction stop when no significant
predictors (< |
naive |
use the naive estimates for the Degrees of Freedom in plsR?
Default is |
link |
character specification of the link function in the mean model
(mu). Currently, " |
link.phi |
character specification of the link function in the
precision model (phi). Currently, " |
type |
character specification of the type of estimator. Currently,
maximum likelihood (" |
verbose |
should info messages be displayed ? |
There are seven different predefined models with predefined link functions available :
ordinary pls models
glm gaussian with inverse link pls models
glm gaussian with identity link pls models
glm binomial with square inverse link pls models
glm binomial with logit link pls models
glm poisson with log link pls models
glm polr with logit link pls models
Using the "family="
option and setting
"modele=pls-glm-family"
allows changing the family and link function
the same way as for the glm
function. As a consequence
user-specified families can also be used.
accepts
the links (as names) identity
, log
and
inverse
.
accepts the links (as names)
identity
, log
and inverse
.
accepts the
links (as names) identity
, log
and inverse
.
accepts the links logit
, probit
, cauchit
,
(corresponding to logistic, normal and Cauchy CDFs respectively) log
and cloglog
(complementary log-log).
accepts
the links logit
, probit
, cauchit
, (corresponding to
logistic, normal and Cauchy CDFs respectively) log
and cloglog
(complementary log-log).
accepts the links logit
,
probit
, cauchit
, (corresponding to logistic, normal and Cauchy
CDFs respectively) log
and cloglog
(complementary log-log).
accepts the links inverse
, identity
and
log
.
accepts the links inverse
,
identity
and log
.
accepts the links
inverse
, identity
and log
.
accepts the
links log
, identity
, and
sqrt
.
accepts the links log
,
identity
, and sqrt
.
accepts the links
log
, identity
, and sqrt
.
accepts the links
1/mu^2
, inverse
, identity
and
log
.
accepts the links 1/mu^2
,
inverse
, identity
and log
.
accepts the
links 1/mu^2
, inverse
, identity
and log
.
accepts the links logit
, probit
, cloglog
,
identity
, inverse
, log
, 1/mu^2
and
sqrt
.
accepts the links logit
,
probit
, cloglog
, identity
, inverse
, log
,
1/mu^2
and sqrt
.
accepts the links
logit
, probit
, cloglog
, identity
,
inverse
, log
, 1/mu^2
and sqrt
.
can be used to create a power link function.
can be used to create a power link function.
The default estimator for Degrees of Freedom is the Kramer and Sugiyama's one which only works for classical plsR models. For these models, Information criteria are computed accordingly to these estimations. Naive Degrees of Freedom and Information Criteria are also provided for comparison purposes. For more details, see Kraemer, N., Sugiyama M. (2010). "The Degrees of Freedom of Partial Least Squares Regression". preprint, http://arxiv.org/abs/1002.4112.
Depends on the model that was used to fit the model.
Use plsRbeta
instead.
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
PLS_beta_wvc
and
PLS_beta_kfoldcv
data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] modpls <- PLS_beta(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") modpls$pp modpls$Coeffs modpls$Std.Coeffs modpls$InfCrit modpls$PredictY[1,] rm("modpls")
data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] modpls <- PLS_beta(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") modpls$pp modpls$Coeffs modpls$Std.Coeffs modpls$InfCrit modpls$PredictY[1,] rm("modpls")
This function implements Partial least squares beta regression models on complete or incomplete datasets (formula specification of the model).
PLS_beta_formula( formula, data = NULL, nt = 2, limQ2set = 0.0975, dataPredictY = dataX, modele = "pls", family = NULL, typeVC = "none", EstimXNA = FALSE, scaleX = TRUE, scaleY = NULL, pvals.expli = FALSE, alpha.pvals.expli = 0.05, MClassed = FALSE, tol_Xi = 10^(-12), weights, subset, start = NULL, etastart, mustart, offset, method, control = list(), contrasts = NULL, sparse = FALSE, sparseStop = TRUE, naive = FALSE, link = NULL, link.phi = NULL, type = "ML", verbose = TRUE )
PLS_beta_formula( formula, data = NULL, nt = 2, limQ2set = 0.0975, dataPredictY = dataX, modele = "pls", family = NULL, typeVC = "none", EstimXNA = FALSE, scaleX = TRUE, scaleY = NULL, pvals.expli = FALSE, alpha.pvals.expli = 0.05, MClassed = FALSE, tol_Xi = 10^(-12), weights, subset, start = NULL, etastart, mustart, offset, method, control = list(), contrasts = NULL, sparse = FALSE, sparseStop = TRUE, naive = FALSE, link = NULL, link.phi = NULL, type = "ML", verbose = TRUE )
formula |
an object of class " |
data |
an optional data frame, list or environment (or object coercible
by |
nt |
number of components to be extracted |
limQ2set |
limit value for the Q2 |
dataPredictY |
predictor(s) (testing) dataset |
modele |
name of the PLS glm or PLS beta model to be fitted
( |
family |
a description of the error distribution and link function to
be used in the model. This can be a character string naming a family
function, a family function or the result of a call to a family function.
(See |
typeVC |
type of leave one out cross validation. For back compatibility purpose.
|
EstimXNA |
only for |
scaleX |
scale the predictor(s) : must be set to TRUE for
|
scaleY |
scale the response : Yes/No. Ignored since not always possible for glm responses. |
pvals.expli |
should individual p-values be reported to tune model selection ? |
alpha.pvals.expli |
level of significance for predictors when pvals.expli=TRUE |
MClassed |
number of missclassified cases, should only be used for binary responses |
tol_Xi |
minimal value for Norm2(Xi) and |
weights |
an optional vector of 'prior weights' to be used in the
fitting process. Should be |
subset |
an optional vector specifying a subset of observations to be used in the fitting process. |
start |
starting values for the parameters in the linear predictor. |
etastart |
starting values for the linear predictor. |
mustart |
starting values for the vector of means. |
offset |
this can be used to specify an a priori known component
to be included in the linear predictor during fitting. This should be
|
method |
|
control |
a list of parameters for controlling the fitting process. For
|
contrasts |
an optional list. See the |
sparse |
should the coefficients of non-significant predictors
(< |
sparseStop |
should component extraction stop when no significant
predictors (< |
naive |
Use the naive estimates for the Degrees of Freedom in plsR?
Default is |
link |
character specification of the link function in the mean model
(mu). Currently, " |
link.phi |
character specification of the link function in the
precision model (phi). Currently, " |
type |
character specification of the type of estimator. Currently,
maximum likelihood (" |
verbose |
should info messages be displayed ? |
There are seven different predefined models with predefined link functions available :
ordinary pls models
glm gaussian with inverse link pls models
glm gaussian with identity link pls models
glm binomial with square inverse link pls models
glm binomial with logit link pls models
glm poisson with log link pls models
glm polr with logit link pls models
Using the "family="
option and setting
"modele=pls-glm-family"
allows changing the family and link function
the same way as for the glm
function. As a consequence
user-specified families can also be used.
accepts
the links (as names) identity
, log
and
inverse
.
accepts the links (as names)
identity
, log
and inverse
.
accepts the
links (as names) identity
, log
and inverse
.
accepts the links logit
, probit
, cauchit
,
(corresponding to logistic, normal and Cauchy CDFs respectively) log
and cloglog
(complementary log-log).
accepts
the links logit
, probit
, cauchit
, (corresponding to
logistic, normal and Cauchy CDFs respectively) log
and cloglog
(complementary log-log).
accepts the links logit
,
probit
, cauchit
, (corresponding to logistic, normal and Cauchy
CDFs respectively) log
and cloglog
(complementary log-log).
accepts the links inverse
, identity
and
log
.
accepts the links inverse
,
identity
and log
.
accepts the links
inverse
, identity
and log
.
accepts the
links log
, identity
, and
sqrt
.
accepts the links log
,
identity
, and sqrt
.
accepts the links
log
, identity
, and sqrt
.
accepts the links
1/mu^2
, inverse
, identity
and
log
.
accepts the links 1/mu^2
,
inverse
, identity
and log
.
accepts the
links 1/mu^2
, inverse
, identity
and log
.
accepts the links logit
, probit
, cloglog
,
identity
, inverse
, log
, 1/mu^2
and
sqrt
.
accepts the links logit
,
probit
, cloglog
, identity
, inverse
, log
,
1/mu^2
and sqrt
.
accepts the links
logit
, probit
, cloglog
, identity
,
inverse
, log
, 1/mu^2
and sqrt
.
can be used to create a power link function.
can be used to create a power link function.
A typical predictor has the form response ~ terms where response is the (numeric) response vector and terms is a series of terms which specifies a linear predictor for response. A terms specification of the form first + second indicates all the terms in first together with all the terms in second with any duplicates removed.
A specification of the form first:second indicates the the set of terms obtained by taking the interactions of all terms in first with all terms in second. The specification first*second indicates the cross of first and second. This is the same as first + second + first:second.
The terms in the formula will be re-ordered so that main effects come first, followed by the interactions, all second-order, all third-order and so on: to avoid this pass a terms object as the formula.
Non-NULL weights can be used to indicate that different observations have different dispersions (with the values in weights being inversely proportional to the dispersions); or equivalently, when the elements of weights are positive integers w_i, that each response y_i is the mean of w_i unit-weight observations.
The default estimator for Degrees of Freedom is the Kramer and Sugiyama's one which only works for classical plsR models. For these models, Information criteria are computed accordingly to these estimations. Naive Degrees of Freedom and Information Criteria are also provided for comparison purposes. For more details, see Kraemer, N., Sugiyama M. (2010). "The Degrees of Freedom of Partial Least Squares Regression". preprint, http://arxiv.org/abs/1002.4112.
Depends on the model that was used to fit the model.
Use plsRbeta
instead.
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
PLS_beta_wvc
and
PLS_beta_kfoldcv_formula
data("GasolineYield",package="betareg") modpls <- PLS_beta_formula(yield~.,data=GasolineYield,nt=3,modele="pls-beta") modpls$pp modpls$Coeffs modpls$Std.Coeffs modpls$InfCrit modpls$PredictY[1,] rm("modpls")
data("GasolineYield",package="betareg") modpls <- PLS_beta_formula(yield~.,data=GasolineYield,nt=3,modele="pls-beta") modpls$pp modpls$Coeffs modpls$Std.Coeffs modpls$InfCrit modpls$PredictY[1,] rm("modpls")
This function implements kfold cross validation on complete or incomplete datasets for partial least squares beta regression models
PLS_beta_kfoldcv( dataY, dataX, nt = 2, limQ2set = 0.0975, modele = "pls", family = NULL, K = nrow(dataX), NK = 1, grouplist = NULL, random = FALSE, scaleX = TRUE, scaleY = NULL, keepcoeffs = FALSE, keepfolds = FALSE, keepdataY = TRUE, keepMclassed = FALSE, tol_Xi = 10^(-12), weights, method, link = NULL, link.phi = NULL, type = "ML", verbose = TRUE )
PLS_beta_kfoldcv( dataY, dataX, nt = 2, limQ2set = 0.0975, modele = "pls", family = NULL, K = nrow(dataX), NK = 1, grouplist = NULL, random = FALSE, scaleX = TRUE, scaleY = NULL, keepcoeffs = FALSE, keepfolds = FALSE, keepdataY = TRUE, keepMclassed = FALSE, tol_Xi = 10^(-12), weights, method, link = NULL, link.phi = NULL, type = "ML", verbose = TRUE )
dataY |
response (training) dataset |
dataX |
predictor(s) (training) dataset |
nt |
number of components to be extracted |
limQ2set |
limit value for the Q2 |
modele |
name of the PLS glm or PLS beta model to be fitted
( |
family |
a description of the error distribution and link function to
be used in the model. This can be a character string naming a family
function, a family function or the result of a call to a family function.
(See |
K |
number of groups |
NK |
number of times the group division is made |
grouplist |
to specify the members of the |
random |
should the |
scaleX |
scale the predictor(s) : must be set to TRUE for
|
scaleY |
scale the response : Yes/No. Ignored since non always possible for glm responses. |
keepcoeffs |
shall the coefficients for each model be returned |
keepfolds |
shall the groups' composition be returned |
keepdataY |
shall the observed value of the response for each one of the predicted value be returned |
keepMclassed |
shall the number of miss classed be returned (unavailable) |
tol_Xi |
minimal value for Norm2(Xi) and |
weights |
an optional vector of 'prior weights' to be used in the
fitting process. Should be |
method |
logistic, probit, complementary log-log or cauchit (corresponding to a Cauchy latent variable). |
link |
character specification of the link function in the mean model
(mu). Currently, " |
link.phi |
character specification of the link function in the
precision model (phi). Currently, " |
type |
character specification of the type of estimator. Currently,
maximum likelihood (" |
verbose |
should info messages be displayed ? |
Predicts 1 group with the K-1
other groups. Leave one out cross
validation is thus obtained for K==nrow(dataX)
.
There are seven different predefined models with predefined link functions available :
ordinary pls models
glm gaussian with inverse link pls models
glm gaussian with identity link pls models
glm binomial with square inverse link pls models
glm binomial with logit link pls models
glm poisson with log link pls models
glm polr with logit link pls models
Using the "family="
option and setting
"modele=pls-glm-family"
allows changing the family and link function
the same way as for the glm
function. As a consequence
user-specified families can also be used.
accepts
the links (as names) identity
, log
and
inverse
.
accepts the links (as names)
identity
, log
and inverse
.
accepts the
links (as names) identity
, log
and inverse
.
accepts the links logit
, probit
, cauchit
,
(corresponding to logistic, normal and Cauchy CDFs respectively) log
and cloglog
(complementary log-log).
accepts
the links logit
, probit
, cauchit
, (corresponding to
logistic, normal and Cauchy CDFs respectively) log
and cloglog
(complementary log-log).
accepts the links logit
,
probit
, cauchit
, (corresponding to logistic, normal and Cauchy
CDFs respectively) log
and cloglog
(complementary log-log).
accepts the links inverse
, identity
and
log
.
accepts the links inverse
,
identity
and log
.
accepts the links
inverse
, identity
and log
.
accepts the
links log
, identity
, and
sqrt
.
accepts the links log
,
identity
, and sqrt
.
accepts the links
log
, identity
, and sqrt
.
accepts the links
1/mu^2
, inverse
, identity
and
log
.
accepts the links 1/mu^2
,
inverse
, identity
and log
.
accepts the
links 1/mu^2
, inverse
, identity
and log
.
accepts the links logit
, probit
, cloglog
,
identity
, inverse
, log
, 1/mu^2
and
sqrt
.
accepts the links logit
,
probit
, cloglog
, identity
, inverse
, log
,
1/mu^2
and sqrt
.
accepts the links
logit
, probit
, cloglog
, identity
,
inverse
, log
, 1/mu^2
and sqrt
.
can be used to create a power link function.
can be used to create a power link function.
Non-NULL weights can be used to indicate that different observations have different dispersions (with the values in weights being inversely proportional to the dispersions); or equivalently, when the elements of weights are positive integers w_i, that each response y_i is the mean of w_i unit-weight observations.
results_kfolds |
list of
|
folds |
list of
|
dataY_kfolds |
list of
|
call |
the call of the function |
Works for complete and incomplete datasets.
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
kfolds2coeff
,
kfolds2Pressind
, kfolds2Press
,
kfolds2Mclassedind
,
kfolds2Mclassed
and
kfolds2CVinfos_beta
to extract and transform results
from kfold cross validation.
## Not run: data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] bbb <- PLS_beta_kfoldcv(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") kfolds2CVinfos_beta(bbb) ## End(Not run)
## Not run: data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] bbb <- PLS_beta_kfoldcv(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") kfolds2CVinfos_beta(bbb) ## End(Not run)
This function implements kfold cross validation on complete or incomplete datasets for partial least squares beta regression models (formula specification of the model).
PLS_beta_kfoldcv_formula( formula, data = NULL, nt = 2, limQ2set = 0.0975, modele = "pls", family = NULL, K = nrow(dataX), NK = 1, grouplist = NULL, random = FALSE, scaleX = TRUE, scaleY = NULL, keepcoeffs = FALSE, keepfolds = FALSE, keepdataY = TRUE, keepMclassed = FALSE, tol_Xi = 10^(-12), weights, subset, start = NULL, etastart, mustart, offset, method, control = list(), contrasts = NULL, sparse = FALSE, sparseStop = TRUE, naive = FALSE, link = NULL, link.phi = NULL, type = "ML", verbose = TRUE )
PLS_beta_kfoldcv_formula( formula, data = NULL, nt = 2, limQ2set = 0.0975, modele = "pls", family = NULL, K = nrow(dataX), NK = 1, grouplist = NULL, random = FALSE, scaleX = TRUE, scaleY = NULL, keepcoeffs = FALSE, keepfolds = FALSE, keepdataY = TRUE, keepMclassed = FALSE, tol_Xi = 10^(-12), weights, subset, start = NULL, etastart, mustart, offset, method, control = list(), contrasts = NULL, sparse = FALSE, sparseStop = TRUE, naive = FALSE, link = NULL, link.phi = NULL, type = "ML", verbose = TRUE )
formula |
an object of class " |
data |
an optional data frame, list or environment (or object coercible
by |
nt |
number of components to be extracted |
limQ2set |
limit value for the Q2 |
modele |
name of the PLS glm or PLS beta model to be fitted
( |
family |
a description of the error distribution and link function to
be used in the model. This can be a character string naming a family
function, a family function or the result of a call to a family function.
(See |
K |
number of groups |
NK |
number of times the group division is made |
grouplist |
to specify the members of the |
random |
should the |
scaleX |
scale the predictor(s) : must be set to TRUE for
|
scaleY |
scale the response : Yes/No. Ignored since non always possible for glm responses. |
keepcoeffs |
shall the coefficients for each model be returned |
keepfolds |
shall the groups' composition be returned |
keepdataY |
shall the observed value of the response for each one of the predicted value be returned |
keepMclassed |
shall the number of miss classed be returned (unavailable) |
tol_Xi |
minimal value for Norm2(Xi) and |
weights |
an optional vector of 'prior weights' to be used in the
fitting process. Should be |
subset |
an optional vector specifying a subset of observations to be used in the fitting process. |
start |
starting values for the parameters in the linear predictor. |
etastart |
starting values for the linear predictor. |
mustart |
starting values for the vector of means. |
offset |
this can be used to specify an a priori known component
to be included in the linear predictor during fitting. This should be
|
method |
|
control |
a list of parameters for controlling the fitting process. For
|
contrasts |
an optional list. See the |
sparse |
should the coefficients of non-significant predictors
(< |
sparseStop |
should component extraction stop when no significant
predictors (< |
naive |
Use the naive estimates for the Degrees of Freedom in plsR?
Default is |
link |
character specification of the link function in the mean model
(mu). Currently, " |
link.phi |
character specification of the link function in the
precision model (phi). Currently, " |
type |
character specification of the type of estimator. Currently,
maximum likelihood (" |
verbose |
should info messages be displayed ? |
Predicts 1 group with the K-1
other groups. Leave one out cross
validation is thus obtained for K==nrow(dataX)
.
There are seven different predefined models with predefined link functions available :
ordinary pls models
glm gaussian with inverse link pls models
glm gaussian with identity link pls models
glm binomial with square inverse link pls models
glm binomial with logit link pls models
glm poisson with log link pls models
glm polr with logit link pls models
Using the "family="
option and setting
"modele=pls-glm-family"
allows changing the family and link function
the same way as for the glm
function. As a consequence
user-specified families can also be used.
accepts
the links (as names) identity
, log
and
inverse
.
accepts the links (as names)
identity
, log
and inverse
.
accepts the
links (as names) identity
, log
and inverse
.
accepts the links logit
, probit
, cauchit
,
(corresponding to logistic, normal and Cauchy CDFs respectively) log
and cloglog
(complementary log-log).
accepts
the links logit
, probit
, cauchit
, (corresponding to
logistic, normal and Cauchy CDFs respectively) log
and cloglog
(complementary log-log).
accepts the links logit
,
probit
, cauchit
, (corresponding to logistic, normal and Cauchy
CDFs respectively) log
and cloglog
(complementary log-log).
accepts the links inverse
, identity
and
log
.
accepts the links inverse
,
identity
and log
.
accepts the links
inverse
, identity
and log
.
accepts the
links log
, identity
, and
sqrt
.
accepts the links log
,
identity
, and sqrt
.
accepts the links
log
, identity
, and sqrt
.
accepts the links
1/mu^2
, inverse
, identity
and
log
.
accepts the links 1/mu^2
,
inverse
, identity
and log
.
accepts the
links 1/mu^2
, inverse
, identity
and log
.
accepts the links logit
, probit
, cloglog
,
identity
, inverse
, log
, 1/mu^2
and
sqrt
.
accepts the links logit
,
probit
, cloglog
, identity
, inverse
, log
,
1/mu^2
and sqrt
.
accepts the links
logit
, probit
, cloglog
, identity
,
inverse
, log
, 1/mu^2
and sqrt
.
can be used to create a power link function.
can be used to create a power link function.
A typical predictor has the form response ~ terms where response is the (numeric) response vector and terms is a series of terms which specifies a linear predictor for response. A terms specification of the form first + second indicates all the terms in first together with all the terms in second with any duplicates removed.
A specification of the form first:second indicates the the set of terms obtained by taking the interactions of all terms in first with all terms in second. The specification first*second indicates the cross of first and second. This is the same as first + second + first:second.
The terms in the formula will be re-ordered so that main effects come first, followed by the interactions, all second-order, all third-order and so on: to avoid this pass a terms object as the formula.
Non-NULL weights can be used to indicate that different observations have different dispersions (with the values in weights being inversely proportional to the dispersions); or equivalently, when the elements of weights are positive integers w_i, that each response y_i is the mean of w_i unit-weight observations.
results_kfolds |
list of
|
folds |
list of
|
dataY_kfolds |
list of
|
call |
the call of the function |
Work for complete and incomplete datasets.
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
kfolds2coeff
,
kfolds2Pressind
, kfolds2Press
,
kfolds2Mclassedind
,
kfolds2Mclassed
and
kfolds2CVinfos_beta
to extract and transform results
from kfold cross validation.
## Not run: data("GasolineYield",package="betareg") bbb <- PLS_beta_kfoldcv_formula(yield~.,data=GasolineYield,nt=3,modele="pls-beta") kfolds2CVinfos_beta(bbb) ## End(Not run)
## Not run: data("GasolineYield",package="betareg") bbb <- PLS_beta_kfoldcv_formula(yield~.,data=GasolineYield,nt=3,modele="pls-beta") kfolds2CVinfos_beta(bbb) ## End(Not run)
Light version of PLS_beta
for cross validation purposes either on
complete or incomplete datasets.
PLS_beta_wvc( dataY, dataX, nt = 2, dataPredictY = dataX, modele = "pls", family = NULL, scaleX = TRUE, scaleY = NULL, keepcoeffs = FALSE, keepstd.coeffs = FALSE, tol_Xi = 10^(-12), weights, method = "logistic", link = NULL, link.phi = NULL, type = "ML", verbose = TRUE )
PLS_beta_wvc( dataY, dataX, nt = 2, dataPredictY = dataX, modele = "pls", family = NULL, scaleX = TRUE, scaleY = NULL, keepcoeffs = FALSE, keepstd.coeffs = FALSE, tol_Xi = 10^(-12), weights, method = "logistic", link = NULL, link.phi = NULL, type = "ML", verbose = TRUE )
dataY |
response (training) dataset |
dataX |
predictor(s) (training) dataset |
nt |
number of components to be extracted |
dataPredictY |
predictor(s) (testing) dataset |
modele |
name of the PLS glm or PLS beta model to be fitted
( |
family |
a description of the error distribution and link function to
be used in the model. This can be a character string naming a family
function, a family function or the result of a call to a family function.
(See |
scaleX |
scale the predictor(s) : must be set to TRUE for
|
scaleY |
scale the response : Yes/No. Ignored since non always possible for glm responses. |
keepcoeffs |
whether the coefficients of the linear fit on link scale of unstandardized eXplanatory variables should be returned or not. |
keepstd.coeffs |
whether the coefficients of the linear fit on link scale of standardized eXplanatory variables should be returned or not. |
tol_Xi |
minimal value for Norm2(Xi) and |
weights |
an optional vector of 'prior weights' to be used in the
fitting process. Should be |
method |
logistic, probit, complementary log-log or cauchit (corresponding to a Cauchy latent variable). |
link |
character specification of the link function in the mean model
(mu). Currently, " |
link.phi |
character specification of the link function in the
precision model (phi). Currently, " |
type |
character specification of the type of estimator. Currently,
maximum likelihood (" |
verbose |
should info messages be displayed ? |
This function is called by PLS_glm_kfoldcv_formula
in order to
perform cross validation either on complete or incomplete datasets.
There are seven different predefined models with predefined link functions available :
ordinary pls models
glm gaussian with inverse link pls models
glm gaussian with identity link pls models
glm binomial with square inverse link pls models
glm binomial with logit link pls models
glm poisson with log link pls models
glm polr with logit link pls models
Using the "family="
option and setting
"modele=pls-glm-family"
allows changing the family and link function
the same way as for the glm
function. As a consequence
user-specified families can also be used.
accepts
the links (as names) identity
, log
and
inverse
.
accepts the links (as names)
identity
, log
and inverse
.
accepts the
links (as names) identity
, log
and inverse
.
accepts the links logit
, probit
, cauchit
,
(corresponding to logistic, normal and Cauchy CDFs respectively) log
and cloglog
(complementary log-log).
accepts
the links logit
, probit
, cauchit
, (corresponding to
logistic, normal and Cauchy CDFs respectively) log
and cloglog
(complementary log-log).
accepts the links logit
,
probit
, cauchit
, (corresponding to logistic, normal and Cauchy
CDFs respectively) log
and cloglog
(complementary log-log).
accepts the links inverse
, identity
and
log
.
accepts the links inverse
,
identity
and log
.
accepts the links
inverse
, identity
and log
.
accepts the
links log
, identity
, and
sqrt
.
accepts the links log
,
identity
, and sqrt
.
accepts the links
log
, identity
, and sqrt
.
accepts the links
1/mu^2
, inverse
, identity
and
log
.
accepts the links 1/mu^2
,
inverse
, identity
and log
.
accepts the
links 1/mu^2
, inverse
, identity
and log
.
accepts the links logit
, probit
, cloglog
,
identity
, inverse
, log
, 1/mu^2
and
sqrt
.
accepts the links logit
,
probit
, cloglog
, identity
, inverse
, log
,
1/mu^2
and sqrt
.
accepts the links
logit
, probit
, cloglog
, identity
,
inverse
, log
, 1/mu^2
and sqrt
.
can be used to create a power link function.
can be used to create a power link function.
Non-NULL weights can be used to indicate that different observations have different dispersions (with the values in weights being inversely proportional to the dispersions); or equivalently, when the elements of weights are positive integers w_i, that each response y_i is the mean of w_i unit-weight observations.
valsPredict |
|
list("coeffs") |
If the coefficients of the
eXplanatory variables were requested: |
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
PLS_beta
for more detailed results,
PLS_beta_kfoldcv
for cross validating models and
PLS_lm_wvc
for the same function dedicated to plsR models
data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] modpls <- PLS_beta_wvc(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") modpls rm("modpls")
data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] modpls <- PLS_beta_wvc(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") modpls rm("modpls")
This function implements Partial least squares Regression generalized linear models complete or incomplete datasets.
plsRbeta(object, ...) ## Default S3 method: plsRbetamodel(object,dataX,nt=2,limQ2set=.0975, dataPredictY=dataX,modele="pls",family=NULL,typeVC="none",EstimXNA=FALSE, scaleX=TRUE,scaleY=NULL,pvals.expli=FALSE,alpha.pvals.expli=.05, MClassed=FALSE,tol_Xi=10^(-12),weights,method,sparse=FALSE,sparseStop=TRUE, naive=FALSE,link=NULL,link.phi=NULL,type="ML",verbose=TRUE, ...) ## S3 method for class 'formula' plsRbetamodel(object,data=NULL,nt=2,limQ2set=.0975, dataPredictY,modele="pls",family=NULL,typeVC="none",EstimXNA=FALSE, scaleX=TRUE,scaleY=NULL,pvals.expli=FALSE,alpha.pvals.expli=.05, MClassed=FALSE,tol_Xi=10^(-12),weights,subset,start=NULL,etastart, mustart,offset,method="glm.fit",control= list(),contrasts=NULL, sparse=FALSE,sparseStop=TRUE,naive=FALSE,link=NULL,link.phi=NULL,type="ML", verbose=TRUE, ...)
plsRbeta(object, ...) ## Default S3 method: plsRbetamodel(object,dataX,nt=2,limQ2set=.0975, dataPredictY=dataX,modele="pls",family=NULL,typeVC="none",EstimXNA=FALSE, scaleX=TRUE,scaleY=NULL,pvals.expli=FALSE,alpha.pvals.expli=.05, MClassed=FALSE,tol_Xi=10^(-12),weights,method,sparse=FALSE,sparseStop=TRUE, naive=FALSE,link=NULL,link.phi=NULL,type="ML",verbose=TRUE, ...) ## S3 method for class 'formula' plsRbetamodel(object,data=NULL,nt=2,limQ2set=.0975, dataPredictY,modele="pls",family=NULL,typeVC="none",EstimXNA=FALSE, scaleX=TRUE,scaleY=NULL,pvals.expli=FALSE,alpha.pvals.expli=.05, MClassed=FALSE,tol_Xi=10^(-12),weights,subset,start=NULL,etastart, mustart,offset,method="glm.fit",control= list(),contrasts=NULL, sparse=FALSE,sparseStop=TRUE,naive=FALSE,link=NULL,link.phi=NULL,type="ML", verbose=TRUE, ...)
object |
a response (training) dataset or an object of class " |
dataX |
predictor(s) (training) dataset |
data |
an optional data frame, list or environment (or object coercible by |
nt |
number of components to be extracted |
limQ2set |
limit value for the Q2 |
dataPredictY |
predictor(s) (testing) dataset |
modele |
name of the PLS glm or PLS beta model to be fitted ( |
family |
a description of the error distribution and link function to be used in the model. This can be a character string naming a family function, a family function or the result of a call to a family function. (See |
typeVC |
type of leave one out cross validation. For back compatibility purpose.
|
EstimXNA |
only for |
scaleX |
scale the predictor(s) : must be set to TRUE for |
scaleY |
scale the response : Yes/No. Ignored since non always possible for glm responses. |
pvals.expli |
should individual p-values be reported to tune model selection ? |
alpha.pvals.expli |
level of significance for predictors when pvals.expli=TRUE |
MClassed |
number of missclassified cases, should only be used for binary responses |
tol_Xi |
minimal value for Norm2(Xi) and |
weights |
an optional vector of 'prior weights' to be used in the fitting process. Should be |
subset |
an optional vector specifying a subset of observations to be used in the fitting process. |
start |
starting values for the parameters in the linear predictor. |
etastart |
starting values for the linear predictor. |
mustart |
starting values for the vector of means. |
offset |
this can be used to specify an a priori known component to be included in the linear predictor during fitting. This should be |
method |
the method to be used in fitting the model. The default method |
control |
a list of parameters for controlling the fitting process. For |
contrasts |
an optional list. See the |
sparse |
should the coefficients of non-significant predictors (< |
sparseStop |
should component extraction stop when no significant predictors (< |
naive |
Use the naive estimates for the Degrees of Freedom in plsR? Default is |
link |
character specification of the link function in the mean model (mu). Currently, " |
link.phi |
character specification of the link function in the precision model (phi). Currently, " |
type |
character specification of the type of estimator. Currently, maximum likelihood (" |
verbose |
should info messages be displayed ? |
... |
arguments to pass to |
There are seven different predefined models with predefined link functions available :
"pls"
ordinary pls models
"pls-glm-Gamma"
glm gaussian with inverse link pls models
"pls-glm-gaussian"
glm gaussian with identity link pls models
"pls-glm-inverse-gamma"
glm binomial with square inverse link pls models
"pls-glm-logistic"
glm binomial with logit link pls models
"pls-glm-poisson"
glm poisson with log link pls models
"pls-glm-polr"
glm polr with logit link pls models
Using the "family="
option and setting "modele=pls-glm-family"
allows changing the family and link function the same way as for the glm
function. As a consequence user-specified families can also be used.
gaussian
familyaccepts the links (as names) identity
, log
and inverse
.
binomial
familyaccepts the links logit
, probit
, cauchit
, (corresponding to logistic, normal and Cauchy CDFs respectively) log
and cloglog
(complementary log-log).
Gamma
familyaccepts the links inverse
, identity
and log
.
poisson
familyaccepts the links log
, identity
, and sqrt
.
inverse.gaussian
familyaccepts the links 1/mu^2
, inverse
, identity
and log
.
quasi
familyaccepts the links logit
, probit
, cloglog
, identity
, inverse
, log
, 1/mu^2
and sqrt
.
power
can be used to create a power link function.
A typical predictor has the form response ~ terms where response is the (numeric) response vector and terms is a series of terms which specifies a linear predictor for response. A terms specification of the form first + second indicates all the terms in first together with all the terms in second with any duplicates removed.
A specification of the form first:second indicates the the set of terms obtained by taking the interactions of all terms in first with all terms in second. The specification first*second indicates the cross of first and second. This is the same as first + second + first:second.
The terms in the formula will be re-ordered so that main effects come first, followed by the interactions, all second-order, all third-order and so on: to avoid this pass a terms object as the formula.
Non-NULL weights can be used to indicate that different observations have different dispersions (with the values in weights being inversely proportional to the dispersions); or equivalently, when the elements of weights are positive integers w_i, that each response y_i is the mean of w_i unit-weight observations.
The default estimator for Degrees of Freedom is the Kramer and Sugiyama's one which only works for classical plsR models. For these models, Information criteria are computed accordingly to these estimations. Naive Degrees of Freedom and Information Criteria are also provided for comparison purposes. For more details, see Kraemer, N., Sugiyama M. (2010). "The Degrees of Freedom of Partial Least Squares Regression". preprint, http://arxiv.org/abs/1002.4112.
Depends on the model that was used to fit the model.
Use plsRbeta
instead.
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
data("GasolineYield",package="betareg") modpls <- plsRbeta(yield~.,data=GasolineYield,nt=3,modele="pls-beta") modpls$pp modpls$Coeffs modpls$Std.Coeffs modpls$InfCrit modpls$PredictY[1,] rm("modpls") data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] modpls <- plsRbeta(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") modpls$pp modpls$Coeffs modpls$Std.Coeffs modpls$InfCrit modpls$PredictY[1,] rm("modpls")
data("GasolineYield",package="betareg") modpls <- plsRbeta(yield~.,data=GasolineYield,nt=3,modele="pls-beta") modpls$pp modpls$Coeffs modpls$Std.Coeffs modpls$InfCrit modpls$PredictY[1,] rm("modpls") data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] modpls <- plsRbeta(yGasolineYield,XGasolineYield,nt=3,modele="pls-beta") modpls$pp modpls$Coeffs modpls$Std.Coeffs modpls$InfCrit modpls$PredictY[1,] rm("modpls")
This function provides a print method for the class "plsRbetamodel"
## S3 method for class 'plsRbetamodel' print(x, ...)
## S3 method for class 'plsRbetamodel' print(x, ...)
x |
an object of the class |
... |
not used |
NULL
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
data("GasolineYield",package="betareg") modpls <- plsRbeta(yield~.,data=GasolineYield,nt=3,modele="pls-beta") print(modpls)
data("GasolineYield",package="betareg") modpls <- plsRbeta(yield~.,data=GasolineYield,nt=3,modele="pls-beta") print(modpls)
This function provides a print method for the class
"summary.plsRbetamodel"
## S3 method for class 'summary.plsRbetamodel' print(x, ...)
## S3 method for class 'summary.plsRbetamodel' print(x, ...)
x |
an object of the class |
... |
not used |
language |
call of the model |
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
data("GasolineYield",package="betareg") modpls <- plsRbeta(yield~.,data=GasolineYield,nt=3,modele="pls-beta") print(summary(modpls))
data("GasolineYield",package="betareg") modpls <- plsRbeta(yield~.,data=GasolineYield,nt=3,modele="pls-beta") print(summary(modpls))
This function generates a single univariate rate response value and
a vector of explanatory variables
drawn from a
model with a given number of latent components.
simul_data_UniYX_beta( totdim, ncomp, disp = 1, link = "logit", type = "a", phi0 = 20 )
simul_data_UniYX_beta( totdim, ncomp, disp = 1, link = "logit", type = "a", phi0 = 20 )
totdim |
Number of columns of the X vector (from |
ncomp |
Number of latent components in the model (from 2 to 6) |
disp |
Tune the shape of the beta distribution (defaults to 1) |
link |
Character specification of the link function in the mean model
(mu). Currently, " |
type |
Simulation scheme |
phi0 |
Simulation scheme "a" parameter |
This function should be combined with the replicate function to give rise to a larger dataset. The algorithm used is a modification of a port of the one described in the article of Li which is a multivariate generalization of the algorithm of Naes and Martens.
vector |
|
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
T. Naes, H. Martens (1985). Comparison of prediction methods for multicollinear data. Commun. Stat., Simul., 14:545-576. <doi:10.1080/03610918508812458>
Baibing Li, Julian Morris, Elaine B. Martin (2002). Model selection for partial least squares regression, Chemometrics and Intelligent Laboratory Systems, 64:79-89. <doi:110.1016/S0169-7439(02)00051-5>
# logit link layout(matrix(1:4,nrow=2)) hist(t(replicate(100,simul_data_UniYX_beta(4,4)))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=3)))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=5)))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=15)))[,1]) layout(1) # probit link layout(matrix(1:4,nrow=2)) hist(t(replicate(100,simul_data_UniYX_beta(4,4,link="probit")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=3,link="probit")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=5,link="probit")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=15,link="probit")))[,1]) layout(1) # cloglog link layout(matrix(1:4,nrow=2)) hist(t(replicate(100,simul_data_UniYX_beta(4,4,link="cloglog")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=3,link="cloglog")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=5,link="cloglog")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=15,link="cloglog")))[,1]) layout(1) # cauchit link layout(matrix(1:4,nrow=2)) hist(t(replicate(100,simul_data_UniYX_beta(4,4,link="cauchit")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=3,link="cauchit")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=5,link="cauchit")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=15,link="cauchit")))[,1]) layout(1) # loglog link layout(matrix(1:4,nrow=2)) hist(t(replicate(100,simul_data_UniYX_beta(4,4,link="loglog")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=3,link="loglog")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=5,link="loglog")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=15,link="loglog")))[,1]) layout(1) # log link layout(matrix(1:4,nrow=2)) hist(t(replicate(100,simul_data_UniYX_beta(4,4,link="log")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=3,link="log")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=5,link="log")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=15,link="log")))[,1]) layout(1)
# logit link layout(matrix(1:4,nrow=2)) hist(t(replicate(100,simul_data_UniYX_beta(4,4)))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=3)))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=5)))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=15)))[,1]) layout(1) # probit link layout(matrix(1:4,nrow=2)) hist(t(replicate(100,simul_data_UniYX_beta(4,4,link="probit")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=3,link="probit")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=5,link="probit")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=15,link="probit")))[,1]) layout(1) # cloglog link layout(matrix(1:4,nrow=2)) hist(t(replicate(100,simul_data_UniYX_beta(4,4,link="cloglog")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=3,link="cloglog")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=5,link="cloglog")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=15,link="cloglog")))[,1]) layout(1) # cauchit link layout(matrix(1:4,nrow=2)) hist(t(replicate(100,simul_data_UniYX_beta(4,4,link="cauchit")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=3,link="cauchit")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=5,link="cauchit")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=15,link="cauchit")))[,1]) layout(1) # loglog link layout(matrix(1:4,nrow=2)) hist(t(replicate(100,simul_data_UniYX_beta(4,4,link="loglog")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=3,link="loglog")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=5,link="loglog")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=15,link="loglog")))[,1]) layout(1) # log link layout(matrix(1:4,nrow=2)) hist(t(replicate(100,simul_data_UniYX_beta(4,4,link="log")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=3,link="log")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=5,link="log")))[,1]) hist(t(replicate(100,simul_data_UniYX_beta(4,4,disp=15,link="log")))[,1]) layout(1)
This function provides a summary method for the class "plsRbetamodel"
## S3 method for class 'plsRbetamodel' summary(object, ...)
## S3 method for class 'plsRbetamodel' summary(object, ...)
object |
an object of the class |
... |
further arguments to be passed to or from methods. |
call |
function call of plsR beta models |
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
data("GasolineYield",package="betareg") modpls <- plsRbeta(yield~.,data=GasolineYield,nt=3,modele="pls-beta") summary(modpls)
data("GasolineYield",package="betareg") modpls <- plsRbeta(yield~.,data=GasolineYield,nt=3,modele="pls-beta") summary(modpls)
Provides a wrapper for the bootstrap function tilt.boot
from the
boot
R package.
Implements non-parametric tilted bootstrap for PLS
beta regression models by case resampling : the tilt.boot
function
will run an initial bootstrap with equal resampling probabilities (if
required) and will use the output of the initial run to find resampling
probabilities which put the value of the statistic at required values. It
then runs an importance resampling bootstrap using the calculated
probabilities as the resampling distribution.
tilt.bootplsbeta( object, typeboot = "plsmodel", statistic = coefs.plsRbeta, R = c(499, 250, 250), alpha = c(0.025, 0.975), sim = "ordinary", stype = "i", index = 1, stabvalue = 1e+06 )
tilt.bootplsbeta( object, typeboot = "plsmodel", statistic = coefs.plsRbeta, R = c(499, 250, 250), alpha = c(0.025, 0.975), sim = "ordinary", stype = "i", index = 1, stabvalue = 1e+06 )
object |
An object of class |
typeboot |
The type of bootstrap. Either (Y,X) boostrap
( |
statistic |
A function which when applied to data returns a vector
containing the statistic(s) of interest. |
R |
The number of bootstrap replicates. Usually this will be a single
positive integer. For importance resampling, some resamples may use one set
of weights and others use a different set of weights. In this case |
alpha |
The alpha level to which tilting is required. This parameter is
ignored if |
sim |
A character string indicating the type of simulation required.
Possible values are |
stype |
A character string indicating what the second argument of
|
index |
The index of the statistic of interest in the output from
|
stabvalue |
A value to hard threshold bootstrap estimates computed from atypical resamplings. |
An object of class "boot".
Frédéric Bertrand
[email protected]
https://fbertran.github.io/homepage/
Frédéric Bertrand, Nicolas Meyer, Michèle Beau-Faller, Karim El Bayed, Izzie-Jacques Namer, Myriam Maumy-Bertrand (2013). Régression Bêta PLS. Journal de la Société Française de Statistique, 154(3):143-159. http://publications-sfds.math.cnrs.fr/index.php/J-SFdS/article/view/215
data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] modplsRbeta <- plsRbeta(yGasolineYield, XGasolineYield, nt=3, modele="pls-beta") # GazYield.tilt.boot <- tilt.bootplsbeta(modplsRbeta, # statistic=coefs.plsRbeta, R=c(499, 100, 100), # alpha=c(0.025, 0.975), sim="balanced", stype="i", index=1) # boxplots.bootpls(GazYield.tilt.boot,1:2)
data("GasolineYield",package="betareg") yGasolineYield <- GasolineYield$yield XGasolineYield <- GasolineYield[,2:5] modplsRbeta <- plsRbeta(yGasolineYield, XGasolineYield, nt=3, modele="pls-beta") # GazYield.tilt.boot <- tilt.bootplsbeta(modplsRbeta, # statistic=coefs.plsRbeta, R=c(499, 100, 100), # alpha=c(0.025, 0.975), sim="balanced", stype="i", index=1) # boxplots.bootpls(GazYield.tilt.boot,1:2)
This dataset features cancer infiltration rates and microsatellites data.
TxTum
TxTum
A data frame with 106 rows and 60 variables.
CELTUMCO
a numeric vector
age
a numeric vector
sexe
a numeric vector
HISTOADK
a numeric vector
H2
a numeric vector
P3
a numeric vector
P4
a numeric vector
E1
a numeric vector
P5
a numeric vector
R10
a numeric vector
C3M
a numeric vector
P6
a numeric vector
RB
a numeric vector
FL7A
a numeric vector
P53
a numeric vector
W2
a numeric vector
P2
a numeric vector
P1
a numeric vector
W4
a numeric vector
MT1
a numeric vector
MT2
a numeric vector
MT4
a numeric vector
MT3
a numeric vector
HLA
a numeric vector
HLD
a numeric vector
HLC
a numeric vector
HLB
a numeric vector
EA1
a numeric vector
EA3
a numeric vector
EA2
a numeric vector
EA4
a numeric vector
EB1
a numeric vector
EB2
a numeric vector
EB3
a numeric vector
EB4
a numeric vector
EGF1
a numeric vector
EGF2
a numeric vector
EGF3
a numeric vector
EGF4
a numeric vector
EGF5
a numeric vector
EGF6
a numeric vector
FL7B
a numeric vector
VSFGF7
a numeric vector
F3A
a numeric vector
F3B
a numeric vector
VSFGFR3
a numeric vector
F4
a numeric vector
Q5
a numeric vector
VSTOP1
a numeric vector
VSTOP2A
a numeric vector
VSEGFR
a numeric vector
AFRAEGFR
a numeric vector
SRXRA
a numeric vector
SMT
a numeric vector
QMTAMPN
a numeric vector
QMTDELN
a numeric vector
SHL
a numeric vector
SEA
a numeric vector
SEB
a numeric vector
QPCRFGF7
a numeric vector
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data print(TxTum) summary(TxTum)
data print(TxTum) summary(TxTum)
A precomputed bootstrap distribution of the coefficients of a model used in the vignette.
TxTum.mod.bootBC1
TxTum.mod.bootBC1
a class boot object
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(TxTum.mod.bootBC1) str(TxTum.mod.bootBC1) plot(TxTum.mod.bootBC1)
data(TxTum.mod.bootBC1) str(TxTum.mod.bootBC1) plot(TxTum.mod.bootBC1)
A precomputed bootstrap distribution of the coefficients of a model used in the vignette.
TxTum.mod.bootBR6
TxTum.mod.bootBR6
a class boot object
Régression Bêta PLS. (French) [PLS Beta regression.],
F. Bertrand, N. Meyer, M. Beau-Faller, K. El Bayed, N. Izzie-J.,
M. Maumy-Bertrand, (2013), J. SFdS, 154(3):143-159
Partial Least Squares Regression for Beta Regression Models.
F. Bertrand, M. Maumy (2021). useR! 2021, Zurich.
data(TxTum.mod.bootBR6) str(TxTum.mod.bootBR6) plot(TxTum.mod.bootBR6)
data(TxTum.mod.bootBR6) str(TxTum.mod.bootBR6) plot(TxTum.mod.bootBR6)