Skip to content

Allow trait-specific mineval in ge_factanal() #8

Description

@aravind-j

When using everything() in ge_factanal(), only a single mineval value can currently be supplied and is applied to all response variables.

Because different traits may present distinct eigenvalue structures, a global mineval threshold may not be appropriate in multi-trait analyses. Allowing response-specific mineval values would improve flexibility and statistical adequacy of factor retention.

It can be provided as a named vector/list.

ge_factanal(
  data,
  gen = GEN,
  env = ENV,
  resp = everything(),
  mineval = c(Yield = 1.5,
              Height = 1.0,
              Protein = 2.0)
)

Or

mineval = list(
  Yield  = 1.5,
  Height = 1.0,
  Protein = 2.0
)

With, if mineval is length 1, apply to all traits (current behavior) and if named vector/list, match by response name. Also throw informative error if names do not match resp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions