Learn R Programming

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

fastFMM: Fast Functional Mixed Models using Fast Univariate Inference (FUI)

Repository Description

Repository for the development version of the R Package fastFMM. For more information, see the official fastFMM $\texttt{CRAN}$ site.

fastFMM R Package

Installation

Download the $\texttt{R}$ Package fastFMM by running the following command within $\texttt{R}$ or $\texttt{RStudio}$:

install.packages("fastFMM", dependencies = TRUE)

Alternatively, the development version of the $\texttt{R}$ Package fastFMM can be downloaded as follows:

library(devtools)
install_github("gloewing/fastFMM")

Package Usage

Repository Folders

  1. The 'R' folder contains the code of the package, including fui.R and plot_fui.R. The plot_fui.R is still under development and has not been widely tested.

  2. The 'vignettes' folder contains a vignette which shows how to use different arguments of the fui function. This vignette can also be viewed in the link above (under Package Usage).

Dataset Links

The example data set is available in the 'vignettes' folder under the name 'time_series.csv'.

Calling fastFMM from Python

See 'python_fastFMM_vignette.py' in the Github repo for a brief example of using fastFMM on Python through the Python package rpy2. We are working on more documentation. The tutorial assumes the fastFMM R package (and all its dependenices), and the rpy2 Python package have already been installed. Even if you intend to use the package purely within Python, it may be helpful to first install fastFMM in RStudio to ensure all package dependenices are installed automatically.

Copy Link

Version

Install

install.packages('fastFMM')

Monthly Downloads

326

Version

0.3.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Erjia Cui

Last Published

September 29th, 2024

Functions in fastFMM (0.3.0)

cov_nnls

Estimate non-negative diagonal terms on G matrix
fui

Fast Univariate Inference for Longitudinal Functional Models
unimm

Fit a univariate mixed model
plot_fui

Default FUI plotting
G_generate

Creates the design matrix that allows for estimation of G
G_estimate_randint

Special case of estimating covariance of random components G(s1, s2)
pspline_setting

pspline.setting.R from refund
G_estimate

Estimate covariance of random components G(s1, s2)
select_knots

select_knots.R from refund package
all_crossterms

Create crossterms from two matrices