Skip to content

Commit 779240b

Browse files
Matthieu GomezMatthieu Gomez
authored andcommitted
english
1 parent 28951e5 commit 779240b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Formally, denote `T(i)` and `I(i))` the two categorical dimensions associated wi
1414

1515

1616
## Syntax
17-
To estimate an interactive fixed effect model, one needs to specify a formula, a factor model with `ife`, and, eventually, a set of fixed effects with `fe`, a way to compute standard errors with `vcov`, and a weight variable with `weights`.
17+
To estimate an interactive fixed effect model, one needs to specify a formula, a factor model with `ife`, and, optionally, a set of fixed effects with `fe`, a way to compute standard errors with `vcov`, and a weight variable with `weights`.
1818

1919
```julia
2020
using DataFrames, RDatasets, InteractiveFixedEffectModels
@@ -49,7 +49,7 @@ regife(df, @model(Sales ~ Price, ife = (pState + pYear, 2), fe = pState, save =
4949
```julia
5050
Sales ~ Price + Year
5151
```
52-
- Interactive fixed effects are indicated with the keyword argument `ife`. Variables must be of type `PooledDataVector`. For instance, for a factor model with id variable `State`, time variable `Year`, and rank `r` equal to 2:
52+
- Interactive fixed effects are indicated with the keyword argument `ife`. Variables must be of type `PooledDataVector`. The rank is the number of components to use. facFor instance, for a factor model with id variable `State`, time variable `Year`, and rank `r` equal to 2:
5353
5454
```julia
5555
df[:pState] = categorical(df[:State])

src/regife.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ function regife(df::AbstractDataFrame, m::Model; kwargs...)
88
regife(df, m.f; m.dict..., kwargs...)
99
end
1010

11+
#= salue
12+
13+
efe
14+
=#
15+
1116
function regife(df::AbstractDataFrame,
1217
f::Formula;
1318
ife::Union{Symbol, Expr, Nothing} = nothing,

0 commit comments

Comments
 (0)