get_groups: get_groups

Description Usage Arguments Details Value See Also

View source: R/get_groups.R

Description

Assign treatment groups based on pairwise t-tests.

Usage

1
get_groups(ptt.rslt, alpha = 0.05, rm.subset = FALSE)

Arguments

ptt.rslt

Result from the stats function pairwise.t.test.

alpha

Confidence level.

rm.subset

A logical; remove group subsets if true.

Details

This function aids in making letter assignments as to which treatments are significantly different. Also returns a square matrix of alpha values for all pairwise differences. This square matrix can serve as input to the multcompLetters function of the multcompView package which provides letter assignments. If rm.subset is FALSE, then groups such as A,B and A, B, C may be reported. This is redundant in the sense the A, B is a subset of A, B, C. In this case if rm.subset is FALSE, the grop A, B is not reported.

Value

A list consisting of groups of treatment groups that are not significantly differnet and a matrix of p values.

See Also

make_letter_assignments


jfq3/QsRutils documentation built on Jan. 18, 2021, 12:40 a.m.