model <- nlme::lme(soil_property ~ Grazing*Tree_cover*Season,
random = ~1|Random_site,
weights = varIdent(form = ~1|Tree_cover),
data = df,
na.action = na.omit,
method = "REML")