rr_summary: A function to calculate the p values of differences between...

View source: R/reporting_tables.R

rr_summaryR Documentation

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

Description

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

A function to create the RR table from the output of the other calculation functions.

Usage

rr_summary(partition, data)

rr_table(cs_values_output, p_values_output, rr_summary_output)

Arguments

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.

cs_values_output

Data frame output of the estimate_cs_values function.

p_values_output

Data frame output of the calculate_p_values function.

rr_summary_output

Data frame output of the rr_summary function

Value

A data frame the number using the inputted data, broken up by the partition argument detailing:

  • the number of distinct segments visited,

  • the number of individuals interviewed,

  • the percentage ofdistinct segments, individuals interviewof containing the p values for the different differences for the chosen drug and group.

A data frame to b used in the SCIF RR for CES. Note that general info like % of girls in the survey is done once for every drug. Rarely is going to change, historically only one number is shown. Here kept to show if something is off. When transcribing to Word or Excel it is easy to just drop that line.


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