Skip to content

Commit

Permalink
estimate test
Browse files Browse the repository at this point in the history
  • Loading branch information
PharmCat committed Nov 15, 2019
1 parent 3b22ac3 commit 0c05ac4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ end

@testset " # Utils test " begin
be = ReplicateBE.rbe!(df6, dvar = :var1, subject = :subject, formulation = :formulation, period = :period, sequence = :sequence, g_tol = 1e-10);
@test ReplicateBE.contrast(be, [0 0 0 0 0 1]).f[1] 2.3996616631488368 atol=1E-5
@test ReplicateBE.estimate(be, [0 0 0 0 0 1]).est[1] 0.06434039007812514 atol=1E-5
@test ReplicateBE.contrast(be, [0 0 0 0 0 1]).f[1] 2.3996616631488368 atol=1E-5
estt = ReplicateBE.estimate(be, [0 0 0 0 0 1])
@test estt.est[1] 0.06434039007812514 atol=1E-5
@test estt.df[1] 62.0 atol=1E-5
@test estt.ul[1] 0.14736661447650518 atol=1E-5

lsmean = ReplicateBE.lsm(be, [0 0 0 0 0 1])
@test lsmean[1][1] 0.0643403 atol=1E-5
Expand Down

0 comments on commit 0c05ac4

Please sign in to comment.