copulaSample | R Documentation |
Copula sampling. It will generate correlated variables or percentiles when marginal distributions are not specified.
copulaSample(object, n, ...) ## S4 method for signature 'CopulaObj,numeric' copulaSample(object, n)
object |
Copula Object |
n |
Number of samples |
... |
Additional parameters that may or may not be used |
library(cascsim) dist1<-new("Pareto",p1=20,p2=3) dist2<-new("Normal",p1=5,p2=3,min=0,max=20,truncated=TRUE) nom.cop <- new("CopulaObj", param=c(0.5),marginal=list(dist1=dist1,dist2=dist2),dimension=2) copulaSample(nom.cop,100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.