ano: Generate output for ANOVA

Description Usage Arguments Value Examples

View source: R/ano.R

Description

This function will generate output for Analysis of Variance. Homogeneity of Variance (HOV) assumption is tested. If AOV is assumed aov() is performed and Tukey's HSD are used for post hoc analysis. If HOV cannot be assumed robust ANOVA t1way() from WRS2 is used to perform analysis and linear constraints are used for post hoc analysis.

Usage

1
ano(x, y = NULL, tr = 0.1)

Arguments

x

A formula dependent variable ~ dependent variable.

y

Optional A data frame, necessary if data frame is not referenced in formula or piped in.

tr

Optional, a double indicating percentage of means to trim for robust ANOVA, default value is 0.1

Value

A list of output for reporting $analysis_type, $results, $descriptive_statistics, $post_hoc_analysis

Examples

1
2
3
4
ano_results <- ano_data %>% ano(sleeptime ~ light)
ano_results <- ano(sleeptime ~ light, ano_data)
ano_results <- ano(sleeptime ~ light, ano_data)
ano_results <- ano(ano_data$sleeptime ~ ano_data$light)

ECO230/eco230r documentation built on May 12, 2020, 2:10 a.m.