Nothing
"rad.null" <-
function(x, family=poisson, ...)
{
fam <- family(link="log")
aicfun <- fam$aic
dev.resids <- fam$dev.resids
x <- as.rad(x)
nsp <- length(x)
wt <- rep(1, nsp)
if (nsp > 0) {
fit <- rev(cumsum(1/nsp:1)/nsp) * sum(x)
res <- dev.resids(x, fit, wt)
deviance <- sum(res)
aic <- aicfun(x, nsp, fit, wt, deviance)
}
else {
fit <- NA
aic <- NA
res <- NA
deviance <- NA
}
residuals <- x - fit
rdf <- nsp
names(fit) <- names(x)
p <- NA
names(p) <- "S"
out <- list(model = "Brokenstick", family=fam, y = x, coefficients = p,
fitted.values = fit, aic = aic, rank = 0, df.residual = rdf,
deviance = deviance, residuals = residuals, prior.weights=wt)
class(out) <- c("radline", "glm")
out
}
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.