# NOT RUN {
alpha <- 0.05
m <- 8
# Find the vector (b(d/6),...,b(5d/6),s(0),...,s(5d/6)) that specifies the
# Kabaila & Giri (2009) CIUUPI for the second definition of the
# scaled expected length (takes about 30 mins to run):
# }
# NOT RUN {
bsvec <- bsciuupi2(alpha, m, rho = -0.7071068, obj = 2)
# }
# NOT RUN {
# The result bsvec is (to 7 decimal places) the following:
bsvec <- c(-0.0344224, -0.2195927, -0.3451243, -0.3235045, -0.1060439,
1.9753281, 2.0688684, 2.3803642, 2.6434660, 2.6288564, 2.4129931)
# Graph the squared scaled expected length function
gam <- seq(0, 10, by = 0.1)
sel <- sel2ciuupi2(gam, bsvec, alpha, m, rho = -0.7071068)
plot(gam, sel^2, type = "l", lwd = 2, ylab = "", las = 1, xaxs = "i",
main = "Squared Scaled Expected Length", col = "blue",
xlab = expression(paste("|", gamma, "|")))
abline(h = 1, lty = 2)
# }
Run the code above in your browser using DataLab