Skip to content

Commit

Permalink
[Tests] Improve tests
Browse files Browse the repository at this point in the history
Fixes #43
  • Loading branch information
lrnv committed May 9, 2024
1 parent 4ce0824 commit 9efbdab
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions test/sampletest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,13 @@ end
using DataFrames
using RateTables

colrec.country = rand(keys(hmd_countries),nrow(colrec))
fit(PoharPerme, @formula(Surv(time,status)~1), colrec, frpop)
fit(EdererI, @formula(Surv(time,status)~sex), colrec, frpop)
fit(EdererII, @formula(Surv(time,status)~sex), colrec, frpop)
fit(Hakulinen, @formula(Surv(time,status)~sex), colrec, frpop)
fit(GraffeoTest, @formula(Surv(time,status)~stage), colrec, frpop)
for E in (PoharPerme, EdererI, EdererII, Hakulinen)
npe = fit(E, @formula(Surv(time,status)~1), colrec, frpop)
@assert !any(isnan.(npe.Sₑ..., npe.∂Λₑ..., npe.σₑ))
end

fit(GraffeoTest, @formula(Surv(time,status)~stage+Strata(sex)), colrec, frpop)

@test true

# How to use R and R packages in here ?
end


Expand Down

0 comments on commit 9efbdab

Please sign in to comment.