Hi @s3alfisc @leostimpfle
import numpy as np
import pyfixest as pf
data = pf.get_data()
data['job'] = np.random.choice(["Managerial", "Admin", "Blue collar"], size=len(data), p=[1/3, 1/3, 1/3])
fit = pf.feols("Y ~ X1 + X2 + job", data = data)
# works:
pf.etable([fit], cat_template = "weeee::{value}")
# fails
labels = {
"Y": "Wage",
"Y2": "Wealth",
"X1": "Age",
"X2": "Years of Schooling",
"f1": "Industry",
"f2": "Year",
}
pf.etable([fit_i], cat_template = "sadface::{value}", labels=labels)
# this, from the docs, doesn't output whats in the doc webpage either
labels['job']="Job Family"
fit7 = pf.feols("Y ~ X1 + X2 + job", data = data)
pf.etable([fit7], labels=labels, cat_template = "{variable}::{value}")
Hi @s3alfisc @leostimpfle