powered by
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)
The inferred coefficients.
An alias of coefficients.
coefficients
The call.
Value of the log likelihood function.
The residual degrees of freedom of the null model.
The residual degrees of freedom.
Null deviance.
The deviance.
The AIC and BIC scores.
The (rep. Adjusted) McFadden R-square.
A vector of the GRC outcome.
The design matrix.
A vector (sorted) of the starting integers of all GRC groups.
The link function for \(\lambda\)
The weight vector used to consider sampling weights.
Presence of the regression intercept. Can be set to 0 or 1. This is also used to calculate the null deviance.
The tolerancethreshold and maximum number of iteration of the algorithm.
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))
Run the code above in your browser using DataLab