Skip to content

Commit

Permalink
add file for testing caterpillar df and plot
Browse files Browse the repository at this point in the history
  • Loading branch information
abourdea committed Dec 7, 2023
1 parent 3e82e0d commit 2fb8b98
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions function_testing/test_caterpillar_DEC2023.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

library(tidyverse)
library(obstinit)

obi = obstinit::read_current_data()

obi_cohort = obi |>
obstinit::create_obi_cohort()

test_ces = obi_cohort |>
create_caterpillar_df(cesarean, birth)

test_dys = obi_cohort |>
create_caterpillar_df(overall_dystocia_compliance_num, overall_dystocia_den_all)

test_ces |>
plot_caterpillar_chart()

0 comments on commit 2fb8b98

Please sign in to comment.