Learn R Programming

Rrepest (version 1.5.2)

indep_diff: 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)

Value

Dataframe with extra columns containing the difference of the columns along with their standard error.

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.".

Examples

Run this code
indep_diff(rrepest_pisa_age_isced, paste0("mean.age..ISCED level ",c("1","3A","2")))

Run the code above in your browser using DataLab