Introduction to R package copulaSim
What is the usage of the R package copulaSim? | Why do we need to perform virtual patient simulation? | The challenges faced when simulating small data | Solution: copula invariance property | Sklar's Theorem | Why can the copula function be employed to generate joint distribution? | The implementation of copula into a new R package | The demonstration of R Package copulaSim | Generate empirical data: | Assume that the single-arm, 5-dimensional empirical data follows multivariate normal data, and let the sample size of empirical data be 30. | Load package copulaSim | Use function copula.sim to generate ONE simulated dataset for the emperical data | Use function extract.data.sim to convert simulated data into a list of wide-form matrices | Use function compare.copula.sim to perform the comparison between empirical data and multiple simulated datasets. | Employ function new.arm.copula.sim to simulate new multivariate datasets with shifted mean vector from existing empirical data. | Acknowledgement