Skip to content
Prev 178694 / 398506 Next

Generalized linear models (GLM)

Hi

I got a dataset

       loss     max.loss   grp
 1     10         50         2
 2     15         33         1
 3     18         49         2
 4     33         38         1
 5      8          50         3
 6     19         29         1
 7     22         51         4
 8     50         50         2
 9     16         38         1
10    24         30         3

were loss and max.loss are monetary values (in dollar). Grp is group number.

By use of GLM, I have to determine the effect of max.loss and grp (and
interactions between them) on loss. My question is how to do this.

Is it something like

glm(max.loss~loss,family=gaussian(link="identity")

were ofcourse I can change gaussian with Gamma,... and link with log,...

But am I on right track, or what should I change?


Thanks