{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreigh27jms7vcewqzynrnfiitk37uf2xnkd6wjor5vsuso46uxn32ci",
    "uri": "at://did:plc:wwyqal4cnqhuwyacdj7rqq3n/app.bsky.feed.post/3mjhu5p6xmxp2"
  },
  "path": "/t/power-calculations-in-longitudinal-mixed-effects-from-two-measurements-to-three-measurements/28699#post_9",
  "publishedAt": "2026-04-10T15:23:12.000Z",
  "site": "https://discourse.datamethods.org",
  "tags": [
    "@JorgeTeixeira",
    "corStruct",
    "corClasses",
    "https://www.stat.cmu.edu/~brian/720-2007-source/week07-08-ideas/pinheiro98mixedeffects-Sguide.pdf"
  ],
  "textContent": "@JorgeTeixeira when analyzing data with baseline (pre-treatment) and multiple post-treatment time points, I prefer to use an AR(1) structure as a starting point. It logically/clinically makes sense and is why there is the long standing issue of using lme4.\n\nIf, for some reason, your actual data do not meet those assumptions, you can then explore alternatives, but if you need to pre-specify these details in an SAP, AR(1) is what I would use.\n\nWith respect to the older lme() function in the nlme package that is part of Base R + Recommended packages, the description of the “correlation” argument in the documentation is as follows:\n\n> an optional corStruct object describing the within-group correlation structure. See the documentation of corClasses for a description of the available `corStruct`classes. Defaults to `NULL`, corresponding to no within-group correlations.\n\nApparently, over time, the last sentence regarding the default has led to confusion, with some interpretations being unstructured and others being independence.\n\nFinding what would reasonably be considered the definitive reference from 1998 by Jose and Doug:\n\nhttps://www.stat.cmu.edu/~brian/720-2007-source/week07-08-ideas/pinheiro98mixedeffects-Sguide.pdf\n\non the bottom of page 19 is the following:\n\n> The optional argument correlation is used to specify a correlation structure and the optional argument weights is used for variance functions. By default, the within-group errors are assumed to independent and homoscedastic.\n\nso that might help to mitigate some of the confusion. It is also why I have never used the default, and prefer to explicitly define these details.",
  "title": "Power Calculations in Longitudinal Mixed Effects - from two measurements to three measurements"
}