View source: R/ME.fcRegression_MEM.R
ME.fcRegression_MEM | R Documentation |
The Mixed-effect model (MEM) approach is a two-stage-based method that employs functional mixed-effects models. It allows us to delve into the nonlinear measurement error model, where the relationship between the true and observed measurements is not constrained to be linear, and the distribution assumption on the observed measurement is relaxed to encompass the exponential family rather than being limited to the Gaussian distribution. The MEM approach employs point-wise (UP_MEM) and multi-point-wise (MP_MEM) estimation procedures to avoid potential computational complexities caused by analyses of multi-level functional data and computations of potentially intractable and complex integrals.
ME.fcRegression_MEM(
data.Y,
data.W,
data.Z,
method = c("UP_MEM", "MP_MEM", "average"),
t_interval = c(0, 1),
t_points = NULL,
d = 3,
family.W = c("gaussian", "poisson"),
family.Y = "gaussian",
formula.Z,
basis.type = c("Fourier", "Bspline"),
basis.order = NULL,
bs_degree = 3,
smooth = FALSE,
silent = TRUE
)
data.Y |
Response variable, can be an atomic vector, a one-column matrix or data frame, recommended form is a one-column data frame with column name. |
data.W |
A 3-dimensional array, represents |
data.Z |
Scalar covariate(s), can be not input or |
method |
The method to construct the substitution |
t_interval |
A 2-element vector, represents an interval,
means the domain of the functional covariate. Default is c(0,1), represent interval |
t_points |
Sequence of the measurement (time) points, default is |
d |
The number of time points involved for MP_MEM (default and miniumn is 3). |
family.W |
Distribution of |
family.Y |
A description of the error distribution
and link function to be used in the model, see |
formula.Z |
A formula without the response variable, contains only scalar covariate(s), use the format of lme4 package if random effects exist. e.g. ~ Z_1 + (1|Z_2). If not assigned, include all scalar covariates and intercept term as fixed effects. |
basis.type |
Type of function basis.
Can only be assigned as one type even if there is more than one functional covariates.
Available options: 'Fourier' or 'Bspline',
represent Fourier basis and b-spline basis respectively.
For the detailed form for Fourier and b-splines basis,
see |
basis.order |
Indicate number of the function basis.
When using Fourier basis |
bs_degree |
Degree of the piecewise polynomials if use b-splines basis, default is 3.
See |
smooth |
Whether to smooth the substitution of |
silent |
Whether not to show the state of the running of the function. Default is |
Returns a fcRegression
object. See fcRegression
.
Luan, Yuanyuan, et al. "Scalable regression calibration approaches to correcting measurement error in multi-level generalized functional linear regression models with heteroscedastic measurement errors." arXiv preprint arXiv:2305.12624 (2023).
data(MECfda.data.sim.0.1)
res = ME.fcRegression_MEM(data.Y = MECfda.data.sim.0.1$Y,
data.W = MECfda.data.sim.0.1$W,
data.Z = MECfda.data.sim.0.1$Z,
method = 'UP_MEM',
family.W = "gaussian",
basis.type = 'Bspline')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.