Learn R Programming

penppml (version 0.2.4)

select_fes: Filtering fixed effect lists

Description

A helper function for xvalidate that filters a list of fixed effects and returns the modified list. Used to split the fixed effects for cross-validation.

Usage

select_fes(fe_list, select_obs, list = TRUE)

Value

A modified list of fixed effects.

Arguments

fe_list

A list of fixed effects.

select_obs

A vector of selected observations / rows.

list

Logical. If TRUE, it returns a list. Otherwise, a data frame.