select_fes {penppml}R Documentation

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)

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.

Value

A modified list of fixed effects.


[Package penppml version 0.2.3 Index]