Learn R Programming

⚠️There's a newer version (0.2.1) of this package.Take me there.

MECfda (version 0.2.0)

Scalar-on-Function Regression with Measurement Error Correction

Description

Solve scalar-on-function linear models, including generalized linear mixed effect model and quantile linear regression model, and bias correction estimation methods due to measurement error. Details about the measurement error bias correction methods, see Luan et al. (2023) , Tekwe et al. (2022) , Zhang et al. (2023) , Tekwe et al. (2019) .

Copy Link

Version

Install

install.packages('MECfda')

Monthly Downloads

277

Version

0.2.0

License

GPL-3

Maintainer

Heyang Ji

Last Published

March 6th, 2025

Functions in MECfda (0.2.0)

MECfda_simDataGen_ME

Simulation Data Generation: Measurement Error Bias Correction of Scalar-on-function Regression
MECfda.data.sim.1.3

Simulated data
MECfda.data.sim.1.0

Simulated data
MECfda.data.sim.1.2

Simulated data
MECfda.data.sim.1.1

Simulated data
MECfda.data.sim.0.3

Simulated data
MEM_X_hat

Get MEM substitution for (generalized) linear regression with one functional covariate with measurement error.
basis2fun

From the summation series of a functional basis to function value
MECfda_simDataGen_fcReg

Simulation Data Generation: Scalar-on-function Regression
functional_variable-class

Function-valued variable data.
fourier_basis_expansion

Fourier basis expansion for functional variable data
extractCoef

Method of class Fourier_series to extract Fourier coefficients
fcRegression

Solve linear models with functional covariate(s)
fcQR

Solve quantile regression models with functional covariate(s).
fc.beta

Extract the value of coefficient parameter function
bsplineSeries2fun

Compute the value of the b-splines summation series at certain points.
predict.fcQR

Predicted values based on fcQR object
bspline_basis_expansion

B-splines basis expansion for functional variable data
predict.fcRegression

Predicted values based on fcRegression object
bspline_basis-class

b-spline basis
%>%

Pipe operator
numericBasisSeries2fun

Compute the value of the basis function summation series at certain points.
plot,Fourier_series-method

Plot Fourier basis summation series.
numericBasis_series-class

Linear combination of a sequence of basis functions represented numerically
bspline_series-class

b-splines summation series.
dim,functional_variable-method

Extract dimensionality of functional data.
plot,bspline_series-method

Plot b-splines basis summation series.
numeric_basis-class

Numeric representation of a function basis
numeric_basis_expansion

Numeric basis expansion for functional variable data
plot,numericBasis_series-method

Plot numeric basis function summation series.
Fourier_series-class

s4 class of Fourier summation series
MECfda.data.sim.0.0

Simulated data
FourierSeries2fun

Compute the value of the Fourier summation series
ME.fcLR_IV

Bias correction method of applying linear regression to one functional covariate with measurement error using instrumental variable.
FPC_basis_expansion

Functional principal component basis expansion for functional variable data
ME.fcRegression_MEM

Use UP_MEM or MP_MEM substitution to apply (generalized) linear regression with one functional covariate with measurement error.
ME.fcQR_IV.SIMEX

Bias correction method of applying quantile linear regression to dataset with one functional covariate with measurement error using instrumental variable.
ME.fcQR_CLS

Bias correction method of applying quantile linear regression to dataset with one functional covariate with measurement error using corrected loss score method.
MECfda.data.sim.0.2

Simulated data
MECfda.data.sim.0.1

Simulated data