adapt_X_estimating_less_variables: When running the algorithm with a different number of...

View source: R/03_IFE_algorithm_functions.R

adapt_X_estimating_less_variablesR Documentation

When running the algorithm with a different number of observable variables then the number that is available, reformat X. (Mainly used for testing)

Description

When running the algorithm with a different number of observable variables then the number that is available, reformat X. (Mainly used for testing)

Usage

adapt_X_estimating_less_variables(X, vars_est)

Arguments

X

dataframe with the observed variables

vars_est

number of available observed variables for which a coefficient will be estimated

Value

Returns a 3D-array. If vars_est is set to 0, it returns NA.


RCTS documentation built on May 31, 2023, 9:20 p.m.