Skip to content
latentFactoR needs mlr, which CRAN will archive unless its check problems are fixed by Oct 26.

latentFactoR

0.0.9Package record

Data Simulation Based on Latent Factors

0packages depend
4.1Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Generates data based on latent factor models. Data can be continuous, polytomous, dichotomous, or mixed. Skews, cross-loadings, wording effects, population errors, and local dependencies can be added. All parameters can be manipulated. Data categorization is based on Garrido, Abad, and Ponsoda (2011) doi:10.1177/0013164410389489.

Changes in 0.0.9
  • UPDATE: skew range supported by categorize, simulate_factors, and simulate_hierarchical_factors expanded from -2/2 to -10/10 (in increments of 0.05); skew_tables regenerated over the new range
  • INTERNAL: skew_generator rewritten to compute skewness analytically from category counts instead of materializing a sample_size-length vector and calling psych::skew() on it (mathematically equivalent, since the moment-skewness formula only depends on counts per value); it also now searches adaptively over reduction_factor and sample_size when the defaults can't reach a target skew directly, closing gaps (e.g., skew near zero for categories >= 4) that were previously unreachable regardless of tolerance. Together, this cut full skew-table generation time from tens of minutes to about a second
  • FIX: skew_generator's bisection search had a typo (limitinf instead of limitsinf) that left the lower search bound frozen at zero, which combined with skew(proportion) not being monotonic across its full domain, could prevent convergence even for reachable targets

From NEWS in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.7 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
  • ERROR13 OK, 1 ERROR2026-03-10
Advisories

none known

Documentation

In release 0.0.9
README· In the repository, left out of the releaseVignettesNoNEWSYes · 100% structured · mentions 0.0.9Citation fileYes · computed when R runs itWebsitenot declared in DESCRIPTION
Help pages
17includes a package overview page
Examples that run
100%16 run in a plain check
Exported functions with examples
100%
Documented parameters
94%
Return-value docs
100%
Help pages citing references
76%

Downloads

4.1K
CRAN downloads in the past year
Rank #6,608 · ~11/day · ~341/mo
Daily download trend is not available in this view yet.
50930 days
1.3K90 days
4.1K1 year
Compare downloads with other packages →
Also on127 r2u1 autocran

Repository

4Stars
0Forks
1Open issues
0Open PRs
0Releases
182Commits
2Commit identities
License file reads as GPL-3.0 · 182 commits · Last activity 2026-09-07 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2026-07-29 · 32026-08-31 · 4
PracticesBeta

3 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/alexchristensen/latentfactor on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows

Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

Installing latentFactoR adds 154 packages (79 with compiled code, 129 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (1)
R >= 3.6.0
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Dependencies facing archival

CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.

  • mlrfix by Oct 26
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (11)
Author, Maintainer since 0.0.2 (2022)
Author · added in 0.0.3
Author · added in 0.0.3
Contributor · added in 0.0.3
Contributor · added in 0.0.8
Original xoshiro.c implementation
Copyright holder, Contributor · added in 0.0.8
Original ziggurat.c implementation
Contributor · added in 0.0.3
Contributor · added in 0.0.8
Original xoshiro.c implementation
Releases (7)

Pick two releases to compare their code metrics.

  • 0.0.9Latest
    record
    2026-09-07 · current release · diff ↗
  • 0.0.8
    record
    2026-07-28 · diff ↗ ·
    added 1 export
    simulate_hierarchical_factors
  • R
    R 4.6.0 released · 2026-04-24
  • 0.0.7
    record
    2025-11-03 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • unarchivedReturned to CRAN
    2024-04-18
  • 0.0.6
    record
    2024-04-18 · diff ↗ ·
    added 3 exports
    ESEM, add_method_factors, add_wording_effects
  • archivedRemoved from CRAN
    2023-10-13
    requires archived package 'BFpack'
  • R
    R 4.3.0 released · 2023-04-21
  • 0.0.4
    record
    2022-11-22 · diff ↗
  • 0.0.3
    record
    2022-10-13 · diff ↗ ·
    added 8 exports
    EKC, NEST, add_cross_loadings, add_population_error, data_to_zipfs, estimate_dimensions, factor_forest, obtain_zipfs_parameters
  • 0.0.2
    record
    2022-09-09
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-09-09
Total releases
7 / 4 yrs
License
GPL (>= 3.0)
Copyright
See inst/COPYRIGHTS for details
Minimum R
≥ 3.6.0
Bundled data
22 KB / 1 file
Download size
130 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("latentFactoR")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

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 latentFactoR version 0.0.9 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, 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