Package: LTFHPlus 2.1.2

Emil Michael Pedersen

LTFHPlus: Implementation of LT-FH++

Implementation of LT-FH++, an extension of the liability threshold family history (LT-FH) model. LT-FH++ uses a Gibbs sampler for sampling from the truncated multivariate normal distribution and allows for flexible family structures. LT-FH++ was first described in Pedersen, Emil M., et al. (2022) <doi:10.1016/j.ajhg.2022.01.009> as an extension to LT-FH with more flexible family structures, and again as the age-dependent liability threshold (ADuLT) model Pedersen, Emil M., et al. (2023) <doi:10.1038/s41467-023-41210-z> as an alternative to traditional time-to-event genome-wide association studies, where family history was not considered.

Authors:Emil Michael Pedersen [aut, cre], Florian Privé [aut, ths], Bjarni Jóhann Vilhjálmsson [ths], Esben Agerbo [ths], Jette Steinbach [aut], Lucas Rasmussen [ctb]

LTFHPlus_2.1.2.tar.gz
LTFHPlus_2.1.2.tar.gz(r-4.5-noble)LTFHPlus_2.1.2.tar.gz(r-4.4-noble)
LTFHPlus_2.1.2.tgz(r-4.4-emscripten)LTFHPlus_2.1.2.tgz(r-4.3-emscripten)
LTFHPlus.pdf |LTFHPlus.html
LTFHPlus/json (API)
NEWS

# Install 'LTFHPlus' in R:
install.packages('LTFHPlus', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/emilmip/ltfhplus/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

2.36 score 23 scripts 181 downloads 26 exports 41 dependencies

Last updated 3 days agofrom:bbd76bc1c3. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 23 2024
R-4.5-linux-x86_64OKNov 23 2024

Exports:construct_covmatconstruct_covmat_multiconstruct_covmat_singleconvert_age_to_circonvert_age_to_threshconvert_cir_to_ageconvert_formatconvert_liability_to_aooconvert_observed_to_liability_scalecorrect_positive_definiteestimate_gen_liability_ltfhestimate_liabilityestimate_liability_multiestimate_liability_singleget_all_combsget_kinshipget_relatednessgraph_based_covariance_constructiongraph_based_covariance_construction_multiprepare_graphprepare_LTFHPlus_inputrtmvnorm.gibbssimulate_under_LTMsimulate_under_LTM_multisimulate_under_LTM_singletruncated_normal_cdf

Dependencies:batchmeansclicodetoolscpp11data.tabledigestdplyrfansifuturefuture.applygenericsglobalsgluegmmigraphjsonlitelatticelifecyclelistenvmagrittrMatrixmvtnormparallellypillarpkgconfigpurrrR6Rcpprlangsandwichstringistringrtibbletidyrtidyselecttmvtnormutf8vctrswithrxgboostzoo

Readme and manuals

Help Manual

Help pageTopics
Constructing a covariance matrix for a variable number of phenotypesconstruct_covmat
Constructing a covariance matrix for multiple phenotypesconstruct_covmat_multi
Constructing a covariance matrix for a single phenotypeconstruct_covmat_single
Convert age to cumulative incidence rateconvert_age_to_cir
Convert age to thresholdconvert_age_to_thresh
Convert cumulative incidence rate to ageconvert_cir_to_age
Attempts to convert the list entry input format to a long formatconvert_format
Convert liability to age of onsetconvert_liability_to_aoo
Convert the heritability on the observed scale to that on the liability scaleconvert_observed_to_liability_scale
Positive definite matricescorrect_positive_definite
Estimate genetic liability similar to LT-FHestimate_gen_liability_ltfh
Estimating the genetic or full liability for a variable number of phenotypesestimate_liability
Estimating the genetic or full liability for multiple phenotypesestimate_liability_multi
Estimating the genetic or full liabilityestimate_liability_single
construct all combinations of input vectorget_all_combs
Construct kinship matrix from graphget_kinship
Relatedness between a pair of family membersget_relatedness
Constructing covariance matrix from local family graphgraph_based_covariance_construction
Constructing covariance matrix from local family graph for multi trait analysisgraph_based_covariance_construction_multi
Construct graph from register informationprepare_graph
Prepares input for 'estimate_liability'prepare_LTFHPlus_input
Gibbs Sampler for the truncated multivariate normal distributionrtmvnorm.gibbs
Simulate under the liability threshold model.simulate_under_LTM
Simulate under the liability threshold model (multiple phenotypes).simulate_under_LTM_multi
Simulate under the liability threshold model (single phenotype).simulate_under_LTM_single
CDF for truncated normal distribution.truncated_normal_cdf