+ Reply to Thread
Results 1 to 6 of 6

Thread: mixed effect models in R using glmer

  1. #1
    Points: 19, Level: 1
    Level completed: 37%, Points required for next Level: 31

    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    mixed effect models in R using glmer




    Folks, I'm looking for a very basic introduction to mixed effect models in a health care context. Suggestions welcome.


    Thanks

  2. #2
    Omega Contributor
    Points: 38,406, Level: 100
    Level completed: 0%, Points required for next Level: 0
    hlsmith's Avatar
    Location
    Not Ames, IA
    Posts
    7,002
    Thanks
    398
    Thanked 1,186 Times in 1,147 Posts

    Re: mixed effect models in R using glmer

    What are you thinking, panel, cross -sectional, cross -classified data and how would the dependent variable be formatted?
    Stop cowardice, ban guns!

  3. #3
    Points: 19, Level: 1
    Level completed: 37%, Points required for next Level: 31

    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: mixed effect models in R using glmer

    Quote Originally Posted by hlsmith View Post
    What are you thinking, panel, cross -sectional, cross -classified data and how would the dependent variable be formatted?
    Here's a look at the data. Response variable is Y, and trying to tease out hospital and surgeon effects.

    hospital surgeon patient year procedure sex race ageGrp Y
    1 90001 4946208438 105764497 2009 4 1 1 3 0
    2 210022 4399865965 105764795 2009 5 1 1 4 0
    3 210019 4731440957 105764824 2009 5 1 1 4 1
    4 210022 4142258806 105764833 2009 5 1 2 3 0
    5 490059 4309138380 105764850 2009 5 1 1 4 0
    6 210051 4926747245 105765209 2009 4 0 1 4 1

    ageBin raceBlack raceOther
    1 1 0 0
    2 1 0 0
    3 1 0 0
    4 1 1 0
    5 1 0 0
    6 1 0 0

  4. #4
    Omega Contributor
    Points: 38,406, Level: 100
    Level completed: 0%, Points required for next Level: 0
    hlsmith's Avatar
    Location
    Not Ames, IA
    Posts
    7,002
    Thanks
    398
    Thanked 1,186 Times in 1,147 Posts

    Re: mixed effect models in R using glmer

    I dont know of a book, not a heavy R user, but it looks like you may be investigating a binary outcome (e.g. logistic) and may want to have a 2nd and 3rd level for these cross -sectional data.

    Hope that helps get you closer to the right R function (maybe lme4).

    PS, if those are real hosp# you may want to strip them out of the post.
    Stop cowardice, ban guns!

  5. #5
    Super Moderator
    Points: 31,766, Level: 100
    Level completed: 0%, Points required for next Level: 0
    bugman's Avatar
    Posts
    2,255
    Thanks
    290
    Thanked 324 Times in 265 Posts

    Re: mixed effect models in R using glmer

    Have a look at:

    Mixed-effects Models in S and S-plus by Pinheiro and Bates


    and

    Mixed effects models and extension in Ecology with R by Zuur and others

    http://www.highstat.com/book2.htm
    The earth is round: P<0.05

  6. #6
    Points: 19, Level: 1
    Level completed: 37%, Points required for next Level: 31

    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: mixed effect models in R using glmer


    Quote Originally Posted by hlsmith View Post
    I dont know of a book, not a heavy R user, but it looks like you may be investigating a binary outcome (e.g. logistic) and may want to have a 2nd and 3rd level for these cross -sectional data.

    Hope that helps get you closer to the right R function (maybe lme4).

    PS, if those are real hosp# you may want to strip them out of the post.
    Hey, thanks. All the data is fake except the hospital numbers. Yes, it's a binary outcome.

+ Reply to Thread

           




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats