Skip to content

Commit 901db43

Browse files
update to new version (#17)
* Update fit.jl * Update Project.toml * Update Project.toml
1 parent 61a1c5a commit 901db43

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "InteractiveFixedEffectModels"
22
uuid = "80307280-efb2-5c5d-af8b-a9c15821677b"
3-
version = "0.6.2"
3+
version = "0.6.3"
44

55
[deps]
66
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
@@ -27,7 +27,7 @@ StatsModels = "0.6"
2727
Tables = "0"
2828
DataFrames = "0.19, 0.20"
2929
FixedEffects = "0.7"
30-
FixedEffectModels = "0.10.3"
30+
FixedEffectModels = "0.10.3, 0.10.4"
3131
LeastSquaresOptim = "0.7"
3232

3333
[extras]

src/fit.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function regife(df, f::FormulaTerm, vcov::CovarianceEstimator = Vcov.simple();
9393
else
9494
weights = Weights(Ones{Float64}(sum(esample)))
9595
end
96-
sqrtw = sqrt.(values(weights))
96+
sqrtw = sqrt.(weights)
9797
for a in FixedEffectModels.eachterm(formula.rhs)
9898
if has_fe(a)
9999
isa(a, InteractionTerm) && error("Fixed effects cannot be interacted")
@@ -320,4 +320,4 @@ function regife(df, f::FormulaTerm, vcov::CovarianceEstimator = Vcov.simple();
320320
coef_names, yname, f, nobs, dof_residual, r2, r2_a, r2_within,
321321
rss, sum(iterations), all(converged))
322322
end
323-
end
323+
end

0 commit comments

Comments
 (0)