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

Description Usage Arguments Value

View source: R/reporting_tables.R

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

1
2
3
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:

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.


gronert-m/sciCoverageR documentation built on Nov. 23, 2020, 10:33 p.m.