Data generating function for univariate beta plsR models
Data generating function for univariate beta plsR models
This function generates a single univariate rate response value Y and a vector of explanatory variables (X1,…,Xtotdim) 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)
Arguments
totdim: Number of columns of the X vector (from ncomp to hardware limits)
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, "logit", "probit", "cloglog", "cauchit", "log", "loglog" are supported. Alternatively, an object of class "link-glm" can be supplied.
type: Simulation scheme
phi0: Simulation scheme "a" parameter
Returns
vector: (Y,X1,…,Xtotdim)
Details
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.
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