model2encnames

pyoptex.utils.model.model2encnames(model, effect_types, col_names=None)[source]

Retrieves the names of the encoded parameters. Similar to model2names, but also categorically encodes the necessary factors.

Parameters

modelnp.array(2d) or pd.DataFrame

The model

effect_typesnp.array(1d)

An array indicating whether the effect is continuous (=1) or categorical (with >1 levels).

col_namesNone or list(str)

The name of each column of the model. If not provided and a dataframe is provided as the model, the names are taken from the model dataframe. If the model is a numpy array, the columns are named as [‘1’, ‘2’, …]

Returns

enc_param_nameslist(str)

The names of the parameters in the model.