GRCglm | R Documentation |
This function implements maximum likelihood estimation of modified Poisson regression of grouped and right-censored counts.
GRCglm.P(y, x1, scheme, link.lambda = link.log, weights = rep(1, nrow(x1)),
num.intercept = 1, xtol_rel = 1e-08, maxit = 100)
y |
A vector of the GRC outcome. |
x1 |
The design matrix. |
scheme |
A vector (sorted) of the starting integers of all GRC groups. |
link.lambda |
The link function for |
weights |
The weight vector used to consider sampling weights. |
num.intercept |
Presence of the regression intercept. Can be set to 0 or 1. This is also used to calculate the null deviance. |
xtol_rel, maxit |
The tolerancethreshold and maximum number of iteration of the algorithm. |
coefficients |
The inferred coefficients. |
beta |
An alias of |
fitting |
The call. |
log.likelihood |
Value of the log likelihood function. |
df.null |
The residual degrees of freedom of the null model. |
df.residual |
The residual degrees of freedom. |
null.deviance |
Null deviance. |
deviance |
The deviance. |
aic, bic |
The AIC and BIC scores. |
McFaddenR2, McFaddenAdjR2 |
The (rep. Adjusted) McFadden R-square. |
set.seed(123)
tp <- genData.P(beta = c(0.5, -1, 1), data.size = 120, scheme = c(0:3, 5, 8),
scope.lambda = c(1, 10))
a <- GRCglm.P(y = tp$y, x1 = tp$x, scheme = c(0:3, 5, 8))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.