+ Reply to Thread
Results 1 to 2 of 2

Thread: help in model

  1. #1
    Points: 12, Level: 1
    Level completed: 23%, Points required for next Level: 38

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help in model




    I have a data set like that

    ID Wight age sex season region response
    1 60 40 1 4 2 1000
    2 65 40 1 4 1 1200
    3 70 40 1 3 2 1420
    4 90 45 1 1 1 1900
    5 80 30 1 2 2 1700
    6 70 33 2 3 1 1900
    7 60 60 2 2 2 2100
    8 99 40 2 2 1 2500
    9 88 42 2 4 2 2000
    10 90 54 2 1 1 2400

    I want to write a model

    fit <- lmer (response ~ Wight + age + sex + season + region + (I|ID), data=DF )
    here I defined all as a fixed effects except ID which is a random
    first question is that is OK
    second I want to fit weight as a covariate (not as a factor)

    how do I modify the model??

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

    Re: help in model


    Wight = weight?


    Define what you mean by this, "I want to fit weight as a covariate (not as a factor)". Do you mean as a continuous variable?
    Stop cowardice, ban guns!

+ 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