test_age: Statistical analysis on data

Description Usage Arguments Value Examples

View source: R/test_age.R

Description

This function runs statistical analysis on the data. The tests run include a binomial test for the number of female professors, a two-sample t-test with male and female professor ages, a one-way ANOVA with professor ages in each department and a chi-squared test of independence with gender and departments. The type of test performed is depended on the input:
If dpmt is TRUE and gender is FALSE, the ANOVA test is performed.
If dpmt is FALSE and gender is TRUE, the binomial test and the t-test are performed.
If both are TRUE, the chi-squared test of independence is performed.

Usage

1
test_age(dpmt = TRUE, gender = TRUE)

Arguments

dpmt

This argument is initialized as TRUE, and controls which test is performed

gender

This argument is initialized as TRUE, and controls which test is performed

Value

different statistical analysis on the data depending on the input

Examples

1

yz4/WilliamsFaculty documentation built on May 4, 2019, 8:47 p.m.