Skip to content
Discussion options

You must be logged in to vote

Hi @dzfinance , I think this is already possible - you can get demeaned residuals (but not more, e.g. R2 values):

import pyfixest as pf 
import seaborn as sns

data = pf.get_data()

fit = pf.feols("Y ~1 | f1 ", data = data)
u = fit.resid()
y = fit._data[fit._depvar]

import seaborn as sns
sns.scatterplot(x = u, y = y)

What is the exact use case you have in mind?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@s3alfisc
Comment options

Answer selected by dzfinance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants