This is code (and simulated data from that code) to assess how sample size and the numbers of levels of random effects influence parameter estimates of fixed effects in linear mixed-effects models.
The models included two fixed factors “Water level (rewetted or drained)” and “Iron content (low or high)” and were corrected for the random factor “Site ID” (ZB, ES, BM or LH), with tests for interac
This is code (and simulated data from that code) to assess how sample size and the numbers of levels of random effects influence parameter estimates of fixed effects in linear mixed-effects models.