Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Rstudent residual error

    Hi,

    I am trying to generate a variable for the studentized residuals of a mixed effect model I am running. However, I get an error response when I try to generate this variable as shown below.

    Here is a small portion of my data:
    Code:
    * Example generated by -dataex-. To install: ssc install dataex
    clear
    input long pid byte time float(PCS_score SPPB_score)
    10002 1  50.7  5
    10002 2 54.25  1
    10002 3 57.58  6
    10002 4 55.04  8
    10005 1 39.31  4
    10005 2 38.12  1
    10005 3 47.52  7
    10005 4 42.77  6
    10008 1  57.4 11
    10008 2 62.38  1
    10008 3  57.4 10
    10008 4 52.38 11
    10011 1 50.87  9
    10011 2 44.32  1
    10011 3 45.19  7
    10011 4 56.13  6
    end
    The code for my mixed effect model is this:
    Code:
    mixed PCS_score SPPB_score
    And here is the code I am using to generate the studentized residuals with the error shown:
    Code:
    . predict resid, rstudent
    option rstudent not allowed
    r(198);
    I can generate standardized residuals, but I would like to obtain the studentized residuals. Is this not possible for mixed effect linear regressions?

    Thank you for any help.


Working...
X