What The Association Is Within Each Subgroup

Use split.by when you want the same association reported separately within subgroups.

  • descriptive subgroup estimates
  • not a formal test that subgroup effects differ
stratified <- associate$regression(
  data,
  outcome = demented,
  predictors = PRS,
  covariates = c(age, PCA),
  split.by = sex
)

What comes back

A PolyGeniusAssociations object using the fitted model schema, with subgroup membership recorded in stratum.

Plotting

visualize$associations$forest(stratified) visualize$associations$heatmap(stratified)

Open the stratification guide