Skip to content

Conversation

@s3alfisc
Copy link
Member

Provide a pure numpy API to Feols, Fepois and Feiv.

@s3alfisc
Copy link
Member Author

I'm making slow progress on this @apoorvalal:

%load_ext autoreload
%autoreload 2
from pyfixest.estimation.feols_ import Feols
#from pyfixest.estimation.fepois_ import Fepois
import pyfixest as pf

data = pf.get_data().dropna()
Y = data["Y"].to_numpy().reshape(-1, 1)
X = data[["X1", "X2"]].to_numpy()
f = data["f1"].to_numpy().reshape(-1, 1)

mod = Feols(Y=Y, X=X, fe=f, coefnames = ["X1", "X2"])
mod.fit()
mod.vcov("hetero")
mod.tidy()

produces
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants