+ Reply to Thread
Results 1 to 3 of 3

Thread: r(101) factor variables and time-series operators not allowed

  1. #1
    Points: 1,418, Level: 21
    Level completed: 18%, Points required for next Level: 82

    Location
    Indonesia
    Posts
    23
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Question r(101) factor variables and time-series operators not allowed



    Here my variables:

    y: meet/unmet [code: 0,1]
    kab: region area [code:1..29, 71..79]

    x1: socioeconomic [code:1..5]
    x2: urban/rural [code: 0,1]
    x3: age [numeric]
    x4: education level [code: 1..7]
    x5: occupation yes/no [code: 0,1]

    x12: % socioeconomic code:1 + code:2 in each region
    x42: % senior high - above in each region
    x72: condition index of each region


    i did some multilevel model using gllamm with STATA/SE v11:

    Code: 
    gllamm y, i(kab) link(logit) fam(binom) adapt nolog
    command executed successfully. Then i'm execute:

    Code: 
    xi: gllamm y i.x1 i.x2 x3 i.x4 i.x5 i(kab) link(logit) fam(binom) adapt nolog
    and some error message appear:

    Code: 
    factor variables and time-series operators not allowed
    r(101);
    I'm try reduce the x's variable one-by-one to check some error but the result is the same. Only first command execute successfully.

    Is there any error on my variables, how to resolve this error?

    Thanks for the response

  2. #2
    Points: 811, Level: 15
    Level completed: 11%, Points required for next Level: 89

    Posts
    78
    Thanks
    0
    Thanked 24 Times in 23 Posts

    Re: r(101) factor variables and time-series operators not allowed

    There needs to be a comma (,) to separate the model and the option.

    Comma between i.x5 and i(kab)

    xi: gllamm y i.x1 i.x2 x3 i.x4 i.x5, i(kab) ...

    Does this solve your problem?


    Quote Originally Posted by sg2kilo View Post
    Here my variables:

    y: meet/unmet [code: 0,1]
    kab: region area [code:1..29, 71..79]

    x1: socioeconomic [code:1..5]
    x2: urban/rural [code: 0,1]
    x3: age [numeric]
    x4: education level [code: 1..7]
    x5: occupation yes/no [code: 0,1]

    x12: % socioeconomic code:1 + code:2 in each region
    x42: % senior high - above in each region
    x72: condition index of each region


    i did some multilevel model using gllamm with STATA/SE v11:

    Code: 
    gllamm y, i(kab) link(logit) fam(binom) adapt nolog
    command executed successfully. Then i'm execute:

    Code: 
    xi: gllamm y i.x1 i.x2 x3 i.x4 i.x5 i(kab) link(logit) fam(binom) adapt nolog
    and some error message appear:

    Code: 
    factor variables and time-series operators not allowed
    r(101);
    I'm try reduce the x's variable one-by-one to check some error but the result is the same. Only first command execute successfully.

    Is there any error on my variables, how to resolve this error?

    Thanks for the response

  3. The Following User Says Thank You to wangwang For This Useful Post:

    sg2kilo (09-13-2012)

  4. #3
    Points: 1,418, Level: 21
    Level completed: 18%, Points required for next Level: 82

    Location
    Indonesia
    Posts
    23
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Re: r(101) factor variables and time-series operators not allowed


    thanks wang, sorry for late response. the problem already solved.
    Yes, its embarrassing to this mistake

+ Reply to Thread

Tags for this 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