paired_indep_diff {Rrepest} | R Documentation |
Paired independent differences
Description
Get differences and standard errors from two columns starting with b. and se. assuming independence. The second column will be subtracted from the first.
Usage
paired_indep_diff(df, col1, col2)
Arguments
df |
(dataframe) Dataframe that contains the columns with b. and se. on their name to get the difference from |
col1 |
(numeric vector) Column name, not including "b.". Must have a column in dataframe also including "se.". |
col2 |
(numeric vector) Column name, not including "b.". Must have a column in dataframe also including "se.". |
Value
Dataframe with extra columns containing the difference of the columns along with their standard error.
Examples
paired_indep_diff(rrepest_pisa_age_gender,"mean.age..Male","mean.age..Female")
[Package Rrepest version 1.5.4 Index]