statsummary: Summary Statistics

Description Usage Arguments Value Examples

Description

Uses data from the williams_grad dataset to compute and display appropriate summary statistics in either tabular or graphical format.

Usage

1
readStudentInfo(data, grad.year)

Arguments

type

The subject of analysis. Possible options are undergrad, grad, latin, department, gender.

  • undergrad: generates summary statistics about undegraduate students

  • grad: generates summary statistics about graduate students

  • latin: generates summary statistics about the distribution of Latin honors at Williams

  • department: generates summary statistics about the distribution of department honors at Williams

  • gender: generates summary statistics about the overall gender ratio and the gender ratios of each department.

format

This argument has three values ("numeric", "timeseries", "distribution")

  • numeric: returns a data frame containing relevant summary statistics

  • timeseries: generates graphical summary that displays changes of the interested statistics over time.

  • distribution: generates graphical summary that displays distribution of the interested subject.

Value

A dataframe containing summary statistics if format == "numeric"

Examples

1
2
3
4
5
statsummary("undergrad", "numeric") # Return a dataframe containing the numbers of undergraduate students by years
statsummary("latin", "timeseries")  # Return a bar chart displaying the percentage of students receiving Summa Cum Laude,
                                    # Magna Cum Laude, Cum Laude and no Latin honors over time.
statsummay("depertment", "distribution") # Return a bar chart showing top 5 most popular department (ranked by percentage of total students
                                           majoring in the department)

nnguyen2496/gradinfo documentation built on May 23, 2019, 9:29 p.m.