compute_fes {penppml} | R Documentation |
Fixed Effects Computation
Description
This function is a helper for xvalidate
that computes FEs using PPML First Order Conditions
(FOCs).
Usage
compute_fes(
y,
fes,
x,
b,
insample_obs = rep(1, n),
onlymus = FALSE,
tol = 1e-08,
verbose = FALSE
)
Arguments
y |
Dependent variable (a vector). |
fes |
List of fixed effects. |
x |
Regressor matrix. |
b |
A vector of coefficient estimates. |
insample_obs |
Vector of observations used to estimate the |
onlymus |
Logical. If |
tol |
A tolerance parameter. |
verbose |
Logical. If |
Value
If onlymus = TRUE
, the vector of conditional means. Otherwise, a list with two
elements:
-
mu
: conditional means. -
fe_values
: fixed effects.
[Package penppml version 0.2.3 Index]