When i am running this command i am getting that e...

Discussion in 'Big Data and Analytics' started by Saikrishna_8, Feb 26, 2018.

  1. Saikrishna_8

    Saikrishna_8 New Member
    Alumni

    Joined:
    Nov 10, 2017
    Messages:
    1
    Likes Received:
    0
    When i am running this command i am getting that error. Can anyone help me on that?
    data4<-glm(Bounces~Timeinpage+Continent+Exits+Sourcegroup+Uniquepageviews+Visits, data=data,family="binomial")


    Error in eval(family$initialize) : y values must be 0 <= y <= 1
     
    #1
  2. Priyanka_Mehta

    Priyanka_Mehta Well-Known Member
    Simplilearn Support

    Joined:
    May 25, 2017
    Messages:
    880
    Likes Received:
    57
    Hi Saikrishna,

    I would like to inform you that, you are getting the above mentioned error since Bounces is not a binary factor(i.e it is not holding binary value). So we cannot specify the family here as binomial.

    Kindly try omitting the family="binomial" and run the code. It will work absolutely fine.

    So kindly mentioned the family based on your dependent variable. So that you will not encounter these issues.

    I am sure this will help you.
     
    #2

Share This Page