You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Summary.as_latex() produces invalid LaTeX for variable names containing underscore #2862
importnumpyasnpimportstatsmodels.apiassmimportstatsmodels.formula.apiassmf# Load datadat=sm.datasets.get_rdataset("Guerry", "HistData").data# Fit regression model (using the natural log of one of the regressors)results=smf.ols('Lottery ~ Crime_prop + np.log(Pop1831)', data=dat).fit()
# Inspect the resultsprint(results.summary().as_latex())
Activity
theaverageguy commentedon Mar 22, 2016
How can I fix this?
REBASE: Rebase patch submitted by tvanessa