indep_diff {Rrepest} | R Documentation |
Independent Differences of columns
Description
Get in a dataframe all bivariate combinations of differences and standard errors from columns starting with b. and se. assuming independence. For a time series the vector must be order from oldest to newest.
Usage
indep_diff(df, vec_series)
Arguments
df |
(dataframe) Dataframe that contains the columns with b. and se. on their name to get the difference from |
vec_series |
(numeric vector) Column names to get difference from, not including "b." at the start. 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
indep_diff(rrepest_pisa_age_isced, paste0("mean.age..ISCED level ",c("1","3A","2")))
[Package Rrepest version 1.5.4 Index]