get_numerics: Transform factors in MV into numeric

View source: R/test_factors.R

get_numericsR Documentation

Transform factors in MV into numeric

Description

Internal function not to be called by the user

Usage

  get_numerics(MV)

Arguments

MV

data frame with manifest variables as factors

Details

Internal function. get_numerics is called by get_treated_data.

Value

list with transformed MV and categories of factors

Warning

Do NOT use this function unless you are ME, a package developer, or a jedi user who really knows what is doing (seriously!)

Note

This function is used when there are categorical variables defined as 'factors'. The idea is to convert those factors into numeric vectors while keeping the levels (ie categories) in a separate list


plspm documentation built on March 31, 2023, 11:54 p.m.