Skip to content

copulaSim

0.0.1Package record

Virtual Patient Simulation by Copula Invariance Property

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

Overview

About

To optimize clinical trial designs and data analysis methods consistently through trial simulation, we need to simulate multivariate mixed-type virtual patient data independent of designs and analysis methods under evaluation. To make the outcome of optimization more realistic, relevant empirical patient level data should be utilized when it’s available. However, a few problems arise in simulating trials based on small empirical data, where the underlying marginal distributions and their dependence structure cannot be understood or verified thoroughly due to the limited sample size. To resolve this issue, we use the copula invariance property, which can generate the joint distribution without making a strong parametric assumption. The function copula.sim can generate virtual patient data with optional data validation methods that are based on energy distance and ball divergence measurement. The function compare.copula.sim can conduct comparison of marginal mean and covariance of simulated data. To simulate patient-level data from a hypothetical treatment arm that would perform differently from the observed data, the function new.arm.copula.sim can be used to generate new multivariate data with the same dependence structure of the original data but with a shifted mean vector.

Install

Health

CRAN checks
13OK
Slowest check: 1.9 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.0.1
READMENoVignettesYes · 1 · dynamicNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
7includes a package overview page
Examples that run
100%3 run in a plain check
Exported functions with examples
60%
Documented parameters
82%
Return-value docs
100%
Help pages citing references
14%

Downloads

2.7K
CRAN downloads in the past year
Rank #14,988 · ~7/day · ~222/mo
Daily download trend is not available in this view yet.
29830 days
80790 days
2.7K1 year
Compare downloads with other packages →
Also on86 r2u4 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2022-08-20
Responsiveness
not measured
PracticesBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/psyen0824/copulasim on 2026-10-21.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

Installing copulaSim adds 16 packages (10 with compiled code, 6.2 MB of source tarballs). Heaviest: mvtnorm 1.0 MB, vctrs 1.0 MB, dplyr 902 KB.

Depends (1)
R >= 4.0.0
Imports (7)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (4)
Author, Maintainer since 0.0.1 (2022)
Contributor
Contributor
Contributor
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • 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
  • 0.0.1Latest
    2022-08-19 · current release
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-08-19
Total releases
1 / 4 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.0.0
Download size
37 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("copulaSim")
Yen, P., Gu, X., Jiao, J., & Zhang, J. (2022). copulaSim: Virtual Patient Simulation by Copula Invariance Property (Version 0.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.copulaSim

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 copulaSim version 0.0.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