Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
PharmCat committed Jul 28, 2022
1 parent e06a967 commit 0a67bc7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ end
@test anovatable.pval [0.9176105002855397, 0.6522549061174356, 0.0020109339157131302] atol=1E-4
end

@testset " Model: BE RDS 1, 2X2 " begin
@testset " Model: BE RDS 1, 2X2 + UN test " begin
dfrds = CSV.File(joinpath(path, "csv", "berds2x2", "rds1.csv"), types = Dict(:Var => Float64, :Subject => String, :Period => String, :Sequence => String, :Formulation => String )) |> DataFrame
dropmissing!(dfrds)
lmm = Metida.LMM(@formula(log(Var)~Sequence+Period+Formulation), dfrds;
Expand All @@ -482,6 +482,12 @@ end
Metida.fit!(lmm)
anovatable = Metida.typeiii(lmm)
@test Metida.m2logreml(lmm) -1.0745407333692825 atol=1E-8

# Unstructured
lmm = Metida.LMM(@formula(log(Var)~Sequence+Period+Formulation), dfrds;
repeated = Metida.VarEffect(Metida.@covstr(Formulation|Subject), Metida.UN),
)
Metida.fit!(lmm)
end


Expand Down

0 comments on commit 0a67bc7

Please sign in to comment.