pdf("EMPIRsim_experiment.pdf")
nsim <- 5000
para <- list(alpha=0.15, beta=0.65,
cop1=PLACKETTcop, cop2=PLACKETTcop, para1=0.005, para2=1000)
set.seed(1)
uv <- simCOP(n=nsim, cop=composite2COP, para=para, snv=TRUE,
pch=16, col=rgb(0,0,0,.2))in \R
mtext("A highly complex simulated bivariate relation")
# set.seed(1) # try not resetting the seed
uv.grid <- EMPIRgrid(para=uv, deluv=0.025)
uv2 <- EMPIRsim(n=nsim, empgrid=uv.grid, kumaraswamy=FALSE, snv=TRUE,
col=rgb(1,0,0,0.1), pch=16)
mtext("Resimulation without Kumaraswamy smoothing")
uv3 <- EMPIRsim(n=nsim, empgrid=uv.grid, kumaraswamy=TRUE, snv=TRUE,
col=rgb(1,0,0,0.1),pch=16)
mtext("Resimulation but using the Kumaraswamy Distribution for smoothing")
dev.off()
nsim <- 5000
set.seed(1)
uv1 <- simCOP(n=nsim, cop=PSP, para=NULL, snv=TRUE)
semicorCOP(cop=EMPIRcop, para=uv2, samcor=TRUE)
uv.grid <- EMPIRgrid(para=uv, deluv=0.01)
set.seed(1)
uv2 <- EMPIRsim(n=nsim, empgrid=uv.grid, snv=TRUE,
col=rgb(1,0,0,0.1), pch=16)
mtext("Resimulation without Kumaraswamy smoothing")
semicorCOP(cop=EMPIRcop, para=uv2, samcor=TRUE)
# See other examples under EMPIRsimv
Run the code above in your browser using DataLab