Relative Content

Tag Archive for rggplot2linear-regression

Linear Mixed Effects model and grouping in R

I want to do a linear mixed effects model with my dataset. I have 2 levels for my data. First off i have the individual level (marked by an ID) and the second level is the education group level (Low vs High). They both have respective columns for that. So for each ID i have multiple data over time (time since baseline) and i want to see them evolve over time (so i would do a linear mixed effects). I am doing this in R and the model i am using is: MRI measure ~ time + (1 |ID) + covariates
and i want to plot each individual ID in a graph with their respective linear regression.