Announcement

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

  • Plot confidence interval for linear mixed model

    Hi,

    I'm running a linear mixed model, and am now trying to plot a fitted line with a 95% CI for this model.

    mixed t_75 fibriperc || tbm_id:
    predict x
    twoway lfitci x fibriperc || scatter t_75 fibriperc

    ^this is what I use now to plot the line. The 95% CI is harder, however; I can't find anywhere how to do this.
    I found this topic:
    https://www.statalist.org/forums/for...terval-xtmixed but the 'line' command doesn't work.

    Anyone here that can help? Thanks in advance!
    Last edited by Sanne Kok; 12 Dec 2019, 09:35.
Working...
X