indep_diff: Independent Differences of columns

View source: R/indep_diff.R

indep_diffR 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")))


Rrepest documentation built on April 4, 2025, 2:07 a.m.