panel2cs: Panel Data to Repeated Cross Sections

View source: R/BMisc.R

panel2csR Documentation

Panel Data to Repeated Cross Sections

Description

panel2cs takes a 2 period dataset and turns it into a cross sectional dataset. The data includes the change in time varying variables between the time periods. The default functionality is to keep all the variables from period 1 and add all the variables listed by name in timevars from period 2 to those.

Usage

panel2cs(data, timevars, idname, tname)

Arguments

data

data.frame used in function

timevars

vector of names of variables to keep

idname

unique id

tname

time period name

Value

data.frame


bcallaway11/BMisc documentation built on March 13, 2024, 1:39 a.m.