Package: copulaSim 0.0.1

copulaSim: Virtual Patient Simulation by Copula Invariance Property

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.

Authors:Pei-Shan Yen [aut, cre], Xuemin Gu [ctb], Jenny Jiao [ctb], Jane Zhang [ctb]

copulaSim_0.0.1.tar.gz
copulaSim_0.0.1.zip(r-4.5)copulaSim_0.0.1.zip(r-4.4)copulaSim_0.0.1.zip(r-4.3)
copulaSim_0.0.1.tgz(r-4.4-any)copulaSim_0.0.1.tgz(r-4.3-any)
copulaSim_0.0.1.tar.gz(r-4.5-noble)copulaSim_0.0.1.tar.gz(r-4.4-noble)
copulaSim_0.0.1.tgz(r-4.4-emscripten)copulaSim_0.0.1.tgz(r-4.3-emscripten)
copulaSim.pdf |copulaSim.html
copulaSim/json (API)

# Install 'copulaSim' in R:
install.packages('copulaSim', repos = c('https://psyen0824.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/psyen0824/copulasim/issues

On CRAN:

5 exports 0.63 score 17 dependencies 7 scripts 175 downloads

Last updated 2 years agofrom:3784de0c3b. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 25 2024
R-4.5-winOKAug 25 2024
R-4.5-linuxOKAug 25 2024
R-4.4-winOKAug 25 2024
R-4.4-macOKAug 25 2024
R-4.3-winOKAug 25 2024
R-4.3-macOKAug 25 2024

Exports:compare.copula.simcopula.simecdf.invextract.data.simnew.arm.copula.sim

Dependencies:clidplyrfansigenericsgluelifecyclemagrittrmvtnormpillarpkgconfigR6rlangtibbletidyselectutf8vctrswithr

Introduction to R package copulaSim

Rendered fromintroduction.Rmdusingknitr::rmarkdownon Aug 25 2024.

Last update: 2022-08-20
Started: 2022-08-02