wibe: Descriptive within/between decomposition

View source: R/wibe.R

wibeR Documentation

Descriptive within/between decomposition

Description

[...]

Usage

wibe(
  y = NULL,
  group = NULL,
  time = NULL,
  weights = NULL,
  ref = F,
  long = F,
  dat
)

Arguments

y

Dependent variable

group

Grouping variable to decompose variance into within- and between-group components

time

Time variable to analyze change over time

weights

Probability weights

ref

Number or FALSE. Should values be reported in reference to a specific time?

long

Logical. Should output be in long format?

dat

Dataframe

smoothDat

Logical. Should data be smoothed?

Details

...

Value

List of length 2. Element 1 returns the decomposition by group and time. Elements 2 returns the decomposition by time.

Author(s)

Benjamin Rosche <benjamin.rosche@gmail.com>

Examples

data(incdat)
wibe1 <- wibe(y="inc", group="SES", time="year", dat=dat1)


benrosche/ineqx documentation built on Feb. 10, 2023, 8:35 p.m.