SRMERS0.1.1 package

Semi-Parametric Shape-Restricted Fixed/Mixed Effect(s) Regression Spline

cSplineExp

Calculate the expectation of a fixed effect regression spline (convexi...

cSplineExpDeriv

Calculate the derivatives of coefficients of a fixed effect regression...

cSplineFER

Fit a semi-parametric shape-restricted fixed effect regression spline ...

cSplineGen

Generate C-Spline Basis

cSplineMER

Fit a semi-parametric shape-restricted mixed effects regression spline...

cSplinePred

Calculate the predicted value of a fixed effect regression spline (con...

cSplinePredDeriv

Calculate the derivatives of coefficients of a fixed effect regression...

distributionAsymp

Asymptotic null distribution of the test statistic

distributionBootFER

Bootstrap a null distribution of the test statistic for fixed effect m...

distributionBootMER

Bootstrap a null distribution of the test statistic for mixed effect m...

FERS

P values for shapes obtained from semi-parametric shape-restricted fix...

FERSInt

P values for shapes obtained from semi-parametric shape-restricted fix...

iSplineExp

Calculate the expectation of a fixed effect regression spline (monoton...

iSplineExpDeriv

Calculate the derivatives of coefficients of a fixed effect regression...

iSplineFER

Fit a semi-parametric shape-restricted fixed effect regression spline ...

iSplineGen

Generate I-Spline Basis

iSplineMER

Fit a semi-parametric shape-restricted mixed effects regression spline...

iSplinePred

Calculate the predicted value of a fixed effect regression spline (mon...

iSplinePredDeriv

Calculate the derivatives of coefficients of a fixed effect regression...

LRMed

Calculate the CDE, NDE and NIE (linear models, binary exposure).

LRMed2

Calculate the CDE, NDE and NIE (linear models, continuous exposure).

MERS

P values for shapes obtained from semi-parametric shape-restricted mix...

SRSplineFERInt

Fit a semi-parametric shape-restricted fixed effect regression spline ...

SRSplineFERInt2

Fit a semi-parametric shape-restricted fixed effect regression spline ...

SRSplineMed

Calculate the CDE, NDE and NIE.

SRSplineMedBoot

Calculate the CDE, NDE and NIE of bootstrapped data.

ySimGen

Generate y using existed X, coefficients of X, variance of random effe...

Select the most suitable shape to describe the relationship between the exposure and the outcome among increasing, decreasing, convex, and concave shapes (Yin et al. (2021) <DOI:10.1007/s13571-020-00246-7>); estimate the direct and indirect effects with prior knowledge on the relationship between the mediator and the outcome with binary exposure (Yin et al. (2024) <DOI:10.1007/s13571-024-00336-w>); estimate the direct and indirect effects using linear regression-based approach (VanderWeele (2015, ISBN:9780199325870)).

  • Maintainer: Qing Yin
  • License: GPL-3
  • Last published: 2026-01-13