[R] Which GLM to use with mixed predictor variables i.e. bothdiscrete and continous

Michael Dewey lists at dewey.myzen.co.uk
Sat Jan 9 17:59:13 CET 2016


Please reply to the list as well as others may be able to help you. 
Comments below.

On 09/01/2016 16:08, Charles Thuo wrote:
> I read that glm poisson should have continous predictor variables but my
> model has both continous and discrete predictor variables.

I think you need to read more widely.

  In addition
> am not sure which link function to use.

If the people who wrote R chose a default link then, since they know 
more about statistics than you or I, I suggest you use it unless you can 
think of a good reason to change.

>
> Charles
>
> On 9 Jan 2016 17:27, "Michael Dewey" <lists at dewey.myzen.co.uk
> <mailto:lists at dewey.myzen.co.uk>> wrote:
>
>     Boxbe <https://www.boxbe.com/overview> Michael Dewey
>     (lists at dewey.myzen.co.uk <mailto:lists at dewey.myzen.co.uk>) is not on
>     your Guest List
>     <https://www.boxbe.com/approved-list?tc_serial=23948366964&tc_rand=865530497&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&token=z0E8RY73ui9gXsH7imOJSvT3I5lZh72UaIrMqObc2fbFhrX9P3xMHHwvotPXEIWH&key=TSFxbER%2F6YngyPWC4RAfJB5uEmZ50rxhXypc%2F8oestk%3D>
>     | Approve sender
>     <https://www.boxbe.com/anno?tc_serial=23948366964&tc_rand=865530497&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&token=z0E8RY73ui9gXsH7imOJSvT3I5lZh72UaIrMqObc2fbFhrX9P3xMHHwvotPXEIWH&key=TSFxbER%2F6YngyPWC4RAfJB5uEmZ50rxhXypc%2F8oestk%3D>
>     | Approve domain
>     <https://www.boxbe.com/anno?tc_serial=23948366964&tc_rand=865530497&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&dom&token=z0E8RY73ui9gXsH7imOJSvT3I5lZh72UaIrMqObc2fbFhrX9P3xMHHwvotPXEIWH&key=TSFxbER%2F6YngyPWC4RAfJB5uEmZ50rxhXypc%2F8oestk%3D>
>
>
>     Dear Charles
>
>     You showed us a call of glm with which you are presumably not
>     satisfied. What happened to disappoint you?
>
>     On 09/01/2016 09:55, Charles Thuo wrote:
>
>         I have the following glm
>
>         v_glm <-
>         glm(claim_count~ave_age+cost+inc.count+p.statcount,data=v,family=poisson)
>
>         claim_count - dependent variable and is discrete
>
>         ave_age - predictor variable and is continuous
>
>         cost - predictor variable and is continuous
>
>         inc_count - predictor variable and is  discrete
>
>         p.statcount - predictor variable and is  discrete
>
>         Which is the most appropriate glm to use for such a model.
>
>         Charles
>
>                  [[alternative HTML version deleted]]
>
>         ______________________________________________
>         R-help at r-project.org <mailto:R-help at r-project.org> mailing list
>         -- To UNSUBSCRIBE and more, see
>         https://stat.ethz.ch/mailman/listinfo/r-help
>         PLEASE do read the posting guide
>         http://www.R-project.org/posting-guide.html
>         and provide commented, minimal, self-contained, reproducible code.
>
>
>     --
>     Michael
>     http://www.dewey.myzen.co.uk/home.html
>

-- 
Michael
http://www.dewey.myzen.co.uk/home.html



More information about the R-help mailing list