calculate_p_values: Calculate CES p values

View source: R/calculate_p_values.R

calculate_p_valuesR Documentation

Calculate CES p values

Description

A function to calculate the p values of differences between sexes and attend/non-attend SAC.

Usage

calculate_p_values(drug_name, group, partition, data)

Arguments

drug_name

The three letter code for the drug (e.g., pzq, alb, ...). In quotes.

group

The code for the group of interest (e.g., "1_SAC", "2_Adults"). In quotes.

partition

The variable to determine by what category the data will be split by. In quotes.

data

The data from the survey. A dataframe, not in quotes.

Value

A data frame containing the p values for the different differences for the chosen drug and group.


SCIFoundation/sciCoverageR documentation built on Oct. 31, 2024, 11:45 p.m.