select_fes: Filtering fixed effect lists

View source: R/xvalidate.R

select_fesR 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.


penppml documentation built on Sept. 8, 2023, 5:58 p.m.