# NOT RUN {
n <- 10
R <- c(5, rep(0, n-6) )
param <- c("alpha","beta")
mle <- c(2,6)
pdf <- quote( alpha/beta*(x/beta)^(alpha-1)*exp( -(x/beta)^alpha ) )
cdf <- quote( 1-exp( -(x/beta)^alpha ) )
lb <- 0
ub <- Inf
N <- 100
level <- 0.05
plan <- rtype2(n = n, R = R, param = param, mle = mle, cdf = cdf, lb = lb, ub = ub)
mletype2(plan = plan, param = param, start = mle, cdf = cdf, pdf = pdf, method = "Nelder-Mead",
lb = lb, ub = ub, N = N, level = level)
# }
Run the code above in your browser using DataLab