I'm attempting to plot a curvilinear effect with including covariates from a multi-level model (HLM) in R (see model below)
modelUF_US2 = lmer(ufeel ~ age_c + nat + extra_c + trait_sk_c + neuro_c + agree_c + open_c + g.usuccess + usuccess_cwc + usuccess_cwc2 + trait_sk_c2 (usuccess_cwc | subject),
data = S6_MLM,
REML = 0,
na.action = "na.omit",)
Where usuccess_cwc2 is the squared term of usuccess_cwc that I'm looking to plot.
I've looked over posts discussing how to model curvilinear effects using simple models and MLMs , but haven't figured out how to combine these two approaches.
Any assistance on this would be greatly appreciated!