tmp <- sectionCOP(.55,cop=PSP, lwd=5, col=2)
tmp <- sectionCOP(.55,cop=PSP, wrtV=TRUE, ploton=FALSE,
lwd=2, col=3)
tmp <- sectionCOP(.85,cop=PSP, ploton=FALSE, lwd=5, col=2, lty=2)
tmp <- sectionCOP(.85,cop=PSP, wrtV=TRUE, ploton=FALSE,
lwd=2, col=3, lty=2)
tmp <- sectionCOP(.35,cop=PSP, col=3, lwd=5)
tmp <- sectionCOP(.35,cop=PSP, dercop=TRUE,
ploton=FALSE, col=3)
tmp <- sectionCOP(.35,cop=PSP, wrtV=TRUE, col=2, lwd=5)
tmp <- sectionCOP(.35,cop=PSP, wrtV=TRUE, dercop=TRUE,
ploton=FALSE, col=2)
para <- list(cop1=PLACKETTcop, cop2=PLACKETTcop,
para1=10^runif(1,min=-4, max=0),
para2=10^runif(1,min= 0, max=4),
alpha=runif(1), beta=runif(1))
txts <- c("Alpha=", round(para$alpha, digits=4),
"; Beta=", round(para$beta, digits=4),
"; Theta1=", round(para$para1[1], digits=5),
"; Theta2=", round(para$para2[1], digits=2))
layout(matrix(1:2,byrow=TRUE))
D <- simCOP(n=300, cop=composite2COP, para=para,
cex=0.5, col=rgb(0,0,0,0.2), pch=16)
mtext(paste(txts,collapse=""))
f <- round(runif(1),digits=2)
segments(f,0,f,1, col=3, lwd=2); segments(0,f,1,f, col=2, lwd=2)
ftxt <- c("Sectionals (thick) and derivatives (thin) at ",f,
" nonexceedance probability")
tmp <- sectionCOP(f, cop=composite2COP, para=para, col=3, lwd=4)
tmp <- sectionCOP(f, cop=composite2COP, para=para, dercop=TRUE,
ploton=FALSE, col=3)
tmp <- sectionCOP(f, cop=composite2COP, para=para, ratcop=TRUE,
ploton=FALSE, col=3, lty=2)
tmp <- sectionCOP(f, cop=composite2COP, para=para, wrtV=TRUE,
ploton=FALSE, col=2, lwd=4)
tmp <- sectionCOP(f, cop=composite2COP, para=para, wrtV=TRUE,
dercop=TRUE, ploton=FALSE, col=2)
tmp <- sectionCOP(f, cop=composite2COP, para=para, wrtV=TRUE,
ratcop=TRUE, ploton=FALSE, col=2)
mtext(paste(ftxt, collapse=""))
Run the code above in your browser using DataLab