create.dummy: Construct dummy variables for factor time-invariant vectors.

Description Usage Arguments Value

View source: R/create.dummy.R

Description

Construct dummy variables for factor time-invariant vectors.

Usage

1
create.dummy(data, cs.names = NULL)

Arguments

data

A data frame in long format with time-varying and time-invariant variables.

cs.names

A vecotor of names for the time-invariant variables.

Value

A long format data with time-invariant factor/categorical variables changed to dummy variables.


SOCR/DataSifterII documentation built on Dec. 15, 2021, 10:29 a.m.