View source: R/reporting_tables.R
rr_summary | R Documentation |
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.
rr_summary(partition, data)
rr_table(cs_values_output, p_values_output, rr_summary_output)
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 |
p_values_output |
Data frame output of the |
rr_summary_output |
Data frame output of the |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.