Nothing
fun.gld.slope.vary.int.fixed <-
function (q, fit, fit.simu, fun, param, maxit = 20000, method = "Nelder-Mead")
{
x <- fit$x
y <- fit$y
k1 <- apply(fit.simu, 2, function(x, q) quantile(x, q), q)[-1]
fit1 <- fit[[3]][-c((length(fit[[3]]) - 3):length(fit[[3]]))]
r1 <- optim(k1, function(k1, x, y, fit1, q) {
resid <- y - data.matrix(x) %*% c(fit1[1], k1)
return((sum(resid <= 0)/length(resid) - q)^2)
}, x = x, y = y, fit1 = fit1, q = q, control = list(maxit = maxit),
method = method)
k2 <- r1$par
r2 <- optim(k2, function(k2, x, y, fit1, q) {
gld.fit <- fun(y - data.matrix(x) %*% c(fit1[1], k2))
return((pgl(0, gld.fit, param = param) - q)^2)
}, x = x, y = y, fit1 = fit1, q = q, control = list(maxit = maxit),
method = method)
r.val<- setNames(c(fit1[1], r2$par, r2$value, r2$convergence),c(names(fit1),"Objective Value","Convergence"))
return(list(r2, r.val))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.