Skip to content

latentcor

2.0.2Package record

Fast Computation of Latent Correlations for Mixed Data

1packages dependsuggested by 1
11.8Kdownloads / year
52.9%test coverage
11/13flavors OK

Overview

About

The first stand-alone R package for computation of latent correlation that takes into account all variable types (continuous/binary/ordinal/zero-inflated), comes with an optimized memory footprint, and is computationally efficient, essentially making latent correlation estimation almost as fast as rank-based correlation estimation. The estimation is based on latent copula Gaussian models. For continuous/binary types, see Fan, J., Liu, H., Ning, Y., and Zou, H. (2017). For ternary type, see Quan X., Booth J.G. and Wells M.T. (2018) doi:10.48550/arXiv.1809.06255. For truncated type or zero-inflated type, see Yoon G., Carroll R.J. and Gaynanova I. (2020) doi:10.1093/biomet/asaa007. For approximation method of computation, see Yoon G., Müller C.L. and Gaynanova I. (2021) doi:10.1080/10618600.2021.1882468. The latter method uses multi-linear interpolation originally implemented in the R package https://cran.r-project.org/package=chebpol.

Install

Health

CRAN checks
2NOTE11OK
Check messages
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage:
  ‘interpolant.Rd’
\arguments should not be documented without \usage.

CRAN check page ↗

Slowest check: 5.8 min · r-oldrel-macos-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE12 OK, 1 NOTE2026-07-11
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-04-10
  • ERROR13 OK, 1 ERROR2026-04-09
Show 1 earlier changeHide 1 earlier change
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.0.2
READMEYes · 491 wordsVignettesYes · 2 · dynamicNEWSYes · 67% structured · does not mention 2.0.2Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
9 (1 internal)
Examples that run
80%4 run in a plain check · 1 never run
Exported functions with examples
71%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
22%

Downloads

11.8K
CRAN downloads in the past year
Rank #3,681 · ~32/day · ~986/mo
Daily download trend is not available in this view yet.
1K30 days
2.6K90 days
11.8K1 year
Compare downloads with other packages →
Also on520 r2u7 autocran2.5K conda_forge

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

Installing latentcor adds 115 packages (55 with compiled code, 96 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (1)
R >= 3.0.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (4)
Author, Maintainer since 2.0.2 (2025)
Author

Previously maintained by Mingze Huang (1.0.0 to 2.0.1).

Releases (7)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.0.2Latest
    record
    2025-11-26 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 2.0.1
    record
    2022-09-05 · diff ↗ ·
    added 1 export
    r_ml_wrapper
  • 2.0.0
    record
    2022-08-09 · diff ↗ ·
    added 3 exports
    evaluation, interpolation, ipol
  • unarchivedReturned to CRAN
    2022-06-07
  • 1.2.1
    record
    2022-06-07 · diff ↗
  • archivedRemoved from CRAN
    2022-05-07
    requires archived package 'chebpol'
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2.0
    record
    2021-10-31 · diff ↗
  • 1.1.0
    record
    2021-10-04 · diff ↗ ·
    removed 2 exports
    GenData, estR
    added 3 exports
    gen_data, get_types, latentcor
  • 1.0.0
    record
    2021-08-26
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2021-08-26
Total releases
7 / 5 yrs
License
GPL-3 OSI
Minimum R
≥ 3.0.0
Download size
2.9 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("latentcor")
Gaynanova, I., Huang, M., Müller, C., & Yoon, G. (2025). latentcor: Fast Computation of Latent Correlations for Mixed Data (Version 2.0.2) [Computer software]. https://doi.org/10.32614/CRAN.package.latentcor

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for latentcor version 2.0.2 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy