I made a generalized linear model with an inverse gaussian link.
glm(lone_total ~ class + age + basic_needs_covered_id,
data = mod_data_lone,
family = gaussian(link = "inverse")
)
I have chosen this family and link because of the diagnostic plots, which were bad for inverse.gaussian(link="1/mu^2")
or Gamma(link="log")
(See distribution of outcome variable in the image below)
The results with the following coefficients:
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.784873 0.066836 11.743 < 2e-16 ***
class2 -0.070565 0.067936 -1.039 0.300
class3 0.171242 0.203703 0.841 0.401
age 0.003912 0.003444 1.136 0.257
basic_needs_covered_id -0.110093 0.026307 -4.185 4.1e-05 ***
how do I interpret the Estimates? I tried to interpret them like betas from gamma or poisson models, or to run log() and exp() on them, but nothing really made sense to me.
Descriptives of the Data
> str(mod_data_lone)
'data.frame': 229 obs. of 5 variables:
$ lone_total : num 0.01 3 3 1 1 1 0.01 3 0.01 0.01 ...
$ class : Factor w/ 3 levels "1","2","3": 3 2 1 3 1 1 1 1 1 2 ...
$ age : num -14.44 -8.27 7.38 NA 13.99 ...
$ basic_needs_covered_id: num 0 4 0 2 1 2 0 1 0 1 ...
$ education_id : num 6 8 6 6 6 2 6 6 6 6 ...
The following image shows the barplot and density distributions and means by class of the observations:
-
another table I got is the following, which shows different types of B (which all do not really make sense to me...)
-
Thanks for any help!
family=gaussian(link = "inverse"
), or a true inverse-Gaussian family (family=inverse.gaussian(link = "1/mu^2"
)? In either case, please explain why you make that choice by editing the question. Comments are easy to overlook and can be deleted. $\endgroup$