
Get the number of groups which show invariance with each of the groups
nInvariant.RdGet the number of groups which show invariance with each of the groups
Arguments
- fit
Output of
incrementalFit.- sort
Logical. Should the results be sorted?
- fit.index
Character. What measure should be used?
- cutoff
The cutoff of the difference in `fit.index` to decide whether invariance holds.
- drop
Character list of the groups that should be excluded from calculations.
- df
Logical, if the data.frame of the comparison tree should be returned. If TRUE, `sort` and `drop` are ignored.
Value
If df = FALSE, returns a data frame with two columns: group name and the number of groups with invariant parameters. IF df = TRUE, calculates the number of gorups iteratively, by dropping the least invariant group at each iteration until there are 2 groups left. Returns a data frame with N-1 columns, where N is number of groups.