View source: R/response_scheme.R
| response_scheme | R Documentation |
response_scheme.sglg extracts from a object of class sglg the local influence measures and displays their graphs versus the index of the observations.
response_scheme(model, ...)
model |
an object of the class sglg. This object is returned from the call to glg(), sglg(), survglg() or ssurvglg(). |
... |
other arguments. |
Carlos Alberto Cardozo Delgado <cardozorpackages@gmail.com>
Carlos Alberto Cardozo Delgado, Semi-parametric generalized log-gamma regression models. Ph. D. thesis. Sao Paulo University.
Cardozo C.A., Paula G., and Vanegas L. (2022). Generalized log-gamma additive partial linear models with P-spline smoothing. Statistical Papers.
rows <- 100
columns <- 2
t_beta <- c(0.5, 2)
t_sigma <- 1
t_lambda <- 1
set.seed(8142031)
x1 <- rbinom(rows, 1, 0.5)
x2 <- runif(columns, 0, 1)
X <- cbind(x1,x2)
error <- rglg(rows, 0, 1, t_lambda)
y1 <- X %*%t_beta + t_sigma * error
data.example <- data.frame(y1,X)
fit1 <- glg(y1 ~ x1 + x2 - 1,data=data.example)
response_scheme(fit1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.