Skip to content

factorana

1.7.1Package record

Factor Model Estimation with Latent Variables

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

Overview

About

A flexible framework for estimating factor models with multiple latent variables. Supports linear, probit, ordered probit, and multinomial logit model components. Features include multi-stage estimation, automatic parameter initialization, analytical gradients and Hessians, and parallel estimation. Methods are described in Heckman, Humphries, and Veramendi (2016) doi:10.1016/j.jeconom.2015.12.001, Heckman, Humphries, and Veramendi (2018) doi:10.1086/698760, and Humphries, Joensen, and Veramendi (2024) doi:10.1257/pandp.20241026.

Changes in 1.7.1

Bug fixes

  • robust_se() now returns a *named* vector, as documented. It previously computed sqrt(pmax(0, diag(V))), and pmax() copies attributes from its first argument (the scalar 0), which dropped the parameter names; name-based indexing of the result then silently returned NA. Fixed by ordering the parameter vector first (sqrt(pmax(diag(V), 0))), with a regression test on the naming contract.

Usability

  • define_model_component(): covariates now defaults to NULL, so a pure measurement item no longer needs covariates = NULL spelled out. The documentation also makes the factor-assignment convention explicit (the length-n_factors loading_normalization vector: 0 off-factor, 1 anchor, NA free), and adds a factor_index convenience argument for assigning an item to a single factor (factor_index = 2, loading_normalization = 1 is shorthand for c(0, 1, 0) in a 3-factor model).
Show all changes in 1.7.1Hide the rest of the changes in 1.7.1
  • vcov_factorana() now verifies that the data it is given matches the data the model was fit on (same rows, same order) via a lightweight fingerprint stored on the fit, and errors with a clear message otherwise. This catches the "right shape, wrong rows" case that the free-parameter-count check could not.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.6 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK10 OK2026-04-25
  • ERROR4 OK, 1 NOTE, 1 ERROR2026-04-23
Advisories

none known

Documentation

In release 1.7.1
READMEYes · 3,000 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 1.7.1Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
61 (15 internal)includes a package overview page
Examples that run
54%7 run in a plain check · 6 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
34%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

2.1K
CRAN downloads in the past year
Rank #14,801 · ~6/day · ~179/mo
Daily download trend is not available in this view yet.
30030 days
81390 days
2.1K1 year
Compare downloads with other packages →
Also on146 r2u1 autocran

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)

Installing factorana adds 2 packages (2 with compiled code, 3.5 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppEigen 1.7 MB.

Depends (0)
none
Imports (6)
RcppMASSnnetparallelstatsutils
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (2)
Author, Maintainer since 1.2.0 (2026)
Releases (3)

Pick two releases to compare their code metrics.

  • 1.7.1Latest
    record
    2026-06-10 · current release · diff ↗ ·
    added 9 exports
    bootstrap_factorana, bootstrap_factorana_multistage, bootstrap_fit_sample, collect_bootstrap, evaluate_obs_scores_cpp, generate_bootstrap_samples, robust_se, simulate_factor_model, vcov_factorana
  • 1.3.4
    record
    2026-05-12 · diff ↗ ·
    added 1 export
    fix_factor_param
  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.0
    record
    2026-04-22
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-04-22
Total releases
3 / 1 yrs
License
GPL-3 OSI
Download size
1.8 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("factorana")
Veramendi, G., & Xiong, J. (2026). factorana: Factor Model Estimation with Latent Variables (Version 1.7.1) [Computer software]. https://doi.org/10.32614/CRAN.package.factorana

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

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