plmmr4.2.1 package

Penalized Linear Mixed Models for Correlated Data

add_predictors

A helper function to add predictors to a filebacked matrix of data

align_ids

A helper function to support process_plink()

big_cbind

a version of cbind() for file-backed matrices

check_for_file_extension

check_for_file_extension: a function to make our package 'smart' enoug...

coef.cv_plmm

Coef method for "cv_plmm" class

coef.plmm

Coef method for "plmm" class

construct_variance

a function to create the estimated variance matrix from a PLMM fit

count_constant_features

A helper function to count constant features

count_cores

A helper function to count the number of cores available on the curren...

create_design_filebacked

A function to create a design matrix, outcome, and penalty factor to b...

create_design_in_memory

A function to create a design with an in-memory X matrix

create_design

a function to create a design for PLMM modeling

create_log

create_log_file

cv_plmm

Cross-validation for plmm

cvf

Cross-validation internal function for cv_plmm

eigen_K

A function to take the eigendecomposition of K Note: This is faster th...

estimate_eta

Estimate eta (to be used in rotating the data) This function is called...

fbm2bm

Functions to convert between FBM and big.matrix type objects

find_example_data

A function to help with accessing example PLINK files

get_data

Read in processed data This function is intended to be called after ei...

get_hostname

a function to return the computer's host name

impute_snp_data

A function to impute SNP data

index_samples

A function to align genotype and phenotype data

lam_names

Generate nicely formatted lambda vec

lasso

helper function to implement lasso penalty

log_lik

Evaluate the negative log-likelihood of an intercept-only Gaussian plm...

MCP

helper function to implement MCP penalty The helper functions to imple...

name_and_count_bigsnp

A helper function to label and summarize the contents of a bigSNP

plmm_checks

plmm_checks

plmm_fit

PLMM fit: a function that fits a PLMM using the values returned by plm...

plmm_format

PLMM format: a function to format the output of a model constructed wi...

plmm_loss

Loss method for "plmm" class

plmm_prep

PLMM prep: a function to run checks, SVD, and rotation prior to fittin...

plmm

Fit a linear mixed model via penalized maximum likelihood.

plmmr-package

plmmr: Penalized Linear Mixed Models for Correlated Data

plot.cv_plmm

Plot method for cv_plmm class

plot.plmm

Plot method for plmm class

predict_within_cv

Predict method to use in cross-validation (within cvf)

predict.plmm

Predict method for plmm class

pretty_time

a function to format the time

print.summary.cv_plmm

Print method for summary.cv_plmm objects

print.summary.plmm

A function to print the summary of a plmm model

process_delim

A function to read in large data files as an FBM

process_plink

Preprocess PLINK files using the bigsnpr package

read_data_files

A function to read in a large file as a numeric file-backed matrix (`F...

read_plink_files

A function to read in PLINK files using bigsnpr methods

relatedness_mat

Calculate a relatedness matrix

rotate_filebacked

A function to rotate filebacked data

SCAD

helper function to implement SCAD penalty

setup_lambda

Compute sequence of lambda values

standardize_filebacked

A helper function to standardize a filebacked matrix

standardize_in_memory

A helper function to standardize matrices

subset_filebacked

A helper function to subset big.matrix objects

summary.cv_plmm

A summary function for cv_plmm objects

summary.plmm

A summary method for the plmm objects

untransform_delim

Untransform coefficient values back to the original scale for file-bac...

untransform_in_memory

Untransform coefficient values back to the original scale *In memory...

untransform_plink

Untransform coefficient values back to the original scale for file-bac...

untransform

Untransform coefficient values back to the original scale

unzip_example_data

For Linux/Unix and MacOS only, here is a companion function to unzip t...

Fits penalized linear mixed models that correct for unobserved confounding factors. 'plmmr' infers and corrects for the presence of unobserved confounding effects such as population stratification and environmental heterogeneity. It then fits a linear model via penalized maximum likelihood. Originally designed for the multivariate analysis of single nucleotide polymorphisms (SNPs) measured in a genome-wide association study (GWAS), 'plmmr' eliminates the need for subpopulation-specific analyses and post-analysis p-value adjustments. Functions for the appropriate processing of 'PLINK' files are also supplied. For examples, see the package homepage. <https://pbreheny.github.io/plmmr/>.

  • Maintainer: Patrick J. Breheny
  • License: GPL-3
  • Last published: 2025-03-03