Skip to content

Commit

Permalink
Merge pull request #102 from jmboehm/test-mixedmodels
Browse files Browse the repository at this point in the history
show only one digit past comma
  • Loading branch information
jmboehm authored Sep 19, 2021
2 parents d8e13e3 + 61dfe83 commit 524d880
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion test/MixedModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ni1 = fit(MixedModel, @formula(yield ~ 1 + (1|batch)), MixedModels.dataset(:dyes
gm2 = fit(MixedModel, @formula(yield ~ 1 + (1|batch)), MixedModels.dataset(:dyestuff),
Normal(), SqrtLink(); progress=false)

RegressionTables.regtable(m1,gm1,ni1,gm2; renderSettings = RegressionTables.asciiOutput(joinpath(dirname(@__FILE__), "tables", "mmtest1.txt")), regression_statistics = [:nobs, :r2, :adjr2, :r2_within, :f, :p, :f_kp, :p_kp, :dof])
RegressionTables.regtable(m1,gm1,ni1,gm2; renderSettings = RegressionTables.asciiOutput(joinpath(dirname(@__FILE__), "tables", "mmtest1.txt")), regression_statistics = [:nobs, :r2, :adjr2, :r2_within, :f, :p, :f_kp, :p_kp, :dof],estimformat = "%0.1f", statisticformat = "%0.1f")
@test checkfilesarethesame(joinpath(dirname(@__FILE__), "tables", "mmtest1.txt"), joinpath(dirname(@__FILE__), "tables", "mmtest1_reference.txt"))

rm(joinpath(dirname(@__FILE__), "tables", "mmtest1.txt"))
64 changes: 32 additions & 32 deletions test/tables/mmtest1_reference.txt
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@

--------------------------------------------------------------------------
yield use: Y yield
----------- --------- ----------------------
(1) (2) (3) (4)
--------------------------------------------------------------------------
(Intercept) 1527.500*** -1.035*** 1527.500*** 39.079*
(17.695) (0.174) (17.695) (19.025)
urban: Y 0.697***
(0.120)
livch: 1 0.815***
(0.162)
livch: 2 0.917***
(0.185)
livch: 3+ 0.915***
(0.186)
age 0.004
(0.009)
abs2(age) -0.005***
(0.001)
--------------------------------------------------------------------------
Estimator OLS NL OLS NL
--------------------------------------------------------------------------
N 30 1,934 30 30
R2
Adjusted R2
Within-R2
F
F-test p value
First-stage F statistic
First-stage p value
Degrees of Freedom
--------------------------------------------------------------------------
------------------------------------------------------------------
yield use: Y yield
--------- ------- ------------------
(1) (2) (3) (4)
------------------------------------------------------------------
(Intercept) 1527.5*** -1.0*** 1527.5*** 39.1*
(17.7) (0.2) (17.7) (19.0)
urban: Y 0.7***
(0.1)
livch: 1 0.8***
(0.2)
livch: 2 0.9***
(0.2)
livch: 3+ 0.9***
(0.2)
age 0.0
(0.0)
abs2(age) -0.0***
(0.0)
------------------------------------------------------------------
Estimator OLS NL OLS NL
------------------------------------------------------------------
N 30 1,934 30 30
R2
Adjusted R2
Within-R2
F
F-test p value
First-stage F statistic
First-stage p value
Degrees of Freedom
------------------------------------------------------------------

0 comments on commit 524d880

Please sign in to comment.