I need to understand this example code :
library(GlmSimulatoR)
library(ggplot2)
library(cplm, quietly = TRUE)
set.seed(1)
simdata <- simulate_tweedie(weight = 0.2, ancillary = 1.15, link = “log”)
ggplot(simdata, aes(x = Y)) +
geom_histogram(bins = 30)
glm_model <- cpglm(Y ~ X1, data = simdata, link = “log”)
summary(glm_model)
I need to develop a GLM between some repair time data I have for different levels of peak ground acceleration.
New contributor
Charu Srivastava is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.