R Observatory
Search

tcv

0.1.0CRAN

Determining the Number of Factors in Poisson Factor Models via Thinning Cross-Validation

install.packages("tcv")
CRAN 30-day downloads, method
233−7.2% down on the 30 days before, the worse direction

Implements methods for selecting the number of factors in Poisson factor models, with a primary focus on Thinning Cross-Validation (TCV).

Full description

Implements methods for selecting the number of factors in Poisson factor models, with a primary focus on Thinning Cross-Validation (TCV). The TCV method is based on the 'data thinning' technique, which probabilistically partitions each count observation into training and test sets while preserving the underlying factor structure. The Poisson factor model is then fit on the training set, and model selection is performed by comparing predictive performance on the test set. This toolkit is designed for researchers working with high-dimensional count data in fields such as genomics, text mining, and social sciences. The data thinning methodology is detailed in Dharamshi et al. (2025) <doi:10.1080/01621459.2024.2353948> and Wang et al. (2025) <doi:10.1080/01621459.2025.2546577>.

Maintainer
Zhijing Wang
Licence
GPL (>= 3)
Latest release
23 Sep 2025
First release
23 Sep 2025

Compare with another package

More details
Releases
1
Needs compilation
Yes
Date
2025-09-01
RoxygenNote
7.3.2
SystemRequirements
C++17
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("tcv")
APA
Wang, Z., Peng, H., & Xu, P. (2025). tcv: Determining the Number of Factors in Poisson Factor Models via
Thinning Cross-Validation (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.tcv
About

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

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

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.1.0
    Time taken
    56 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.1.0
    Time taken
    43 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.1.0
    Time taken
    43 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.1.0
    Time taken
    40 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    191 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.1.0
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    49 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    118 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    50 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    47 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    0.1.0
    Time taken
    15 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    55 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.1.0
    Time taken
    95 s
  • 13 OK

Over time

No change since 4 Aug 2026

As a list (5)
ChangedWorst statusOKNotesWarningsErrors
4 Aug 2026OK13000
1 Aug 2026Note12100
22 Apr 2026OK14000
18 Apr 2026Error13001
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
240−12.7% down on the 30 days before, the worse directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

19,479 of 26,530

CRAN

233 downloads in the last 30 days

Rank
19,479 of 26,530
Change
−7.2% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

2 downloads in the last 30 days

Rank
14,902 of 30,526
Change
−86.7% down on the 30 days before, the worse direction

It is in the total. Take it out

autoCRAN

5 downloads in the last 30 days

Rank
10,893 of 29,212
Change
−44.4% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
6
Dependent packages
0
Suggested by
0
Needs (6)
Installing it adds
9 packages, 3.9 MB of source
Of those, need compilation
5
Optional extras (3)
Functions
17
Public exports
3
Lines of R code
186
Median complexity
1
Functions (17)
Size and composition

Lines by kind (482)

KindLinesShare
R code18639%
Documentation12927%
Compiled code16735%

Lines by language

LanguageLinesShare
R18639%
C++16735%
Rd12927%

Languages are counted from file extensions.

Files
12
R functions
5
Compiled functions
12
Complexity
Median
1
Mean
1.6
Highest
3
Median lines per function
17
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
5
Calls
2
Unconnected
1
Groups
2

The package was built and has no tests to run.

Lines of tests
0
Exports named in tests
0%
Test suite
Has tests
No
Test frameworks
testthat
Test lines per line of code
0
Exports documented
100%
Arguments documented
100%
Return value documented
100%
Help pages with examples
33.3%
Examples run in checks
100%
Other documentation
README
No
Release notes file
No
Help pages
3
Lines of documentation
129

Wangzhijingwzj / tcv on github.com

Stars
1
Forks
0
Open issues
0
Last commit
23 Sep 2025
Activity
Commits
12
Open pull requests
0
Tagged releases
1
Latest tagged release
v1.0.0, 21 Sep 2025
Issues closed in
–
Pull requests closed in
–
Pull requests merged
–
Created
6 May 2025
Licence file reads as
–
Development practices (1)
KindFound
Lint, format, editorRStudio project

Method, repository practices

Across Wangzhijingwzj

R releases
  • On CRAN
  • Release
VersionReleasedR
0.1.0 current23 Sep 20254.5.1