demeanXY: Demean Panel Data

View source: R/demeanXY.R

demeanXYR Documentation

Demean Panel Data

Description

demeanXY demeans the panel data.

Usage

demeanXY(X, N, T, N0, T0)

Arguments

X

detaframe or matrix of the original panel data.

N

integer, total number of columns of the panel data.

T

integer, total number of rows of the panel data.

N0

integer, the number of columns in the panel data with full data availability.

T0

integer, the number of rows in the panel data with full data availability.

Value

a list of elements:

X1

demeaned data

FE

estimated fixed effects matrix

Author(s)

Yankang (Bennie) Chen <yankang.chen@yale.edu>

Serena Ng <serena.ng@columbia.edu>

Jushan Bai <jushan.bai@columbia.edu>


cykbennie/fbi documentation built on Jan. 24, 2025, 5:59 p.m.