Skip to content

Commit 107bcca

Browse files
committed
update tests #1199
1 parent 4b2b5d0 commit 107bcca

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

examples/testDirichlet/plotResults.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ mcmc_no_prior <- read_tsv("dirichletNoPrior.log", comment = "#")
99
mcmc_a1111 <- read_tsv("dirichletAlpha1111.log", comment = "#")
1010
mcmc_a2222 <- read_tsv("dirichletAlpha2222.log", comment = "#")
1111
mcmc_a2AVMN <- read_tsv("dirichletAlpha2222AVMN.log", comment = "#")
12+
mcmc_a1Bactrian <- read_tsv("BactrianAlpha1111.log", comment = "#")
1213
mcmc_a2Bactrian <- read_tsv("BactrianAlpha2222.log", comment = "#")
1314

1415
cat("mcmc_data has ", nrow(sim_a1111), " samples, and sim_data has ",
@@ -34,6 +35,9 @@ df_mcmc2 <- as_tibble(mcmc_a2222) |> select(-Sample) |>
3435
df_a2AVMN <- as_tibble(mcmc_a2AVMN) |> select(-Sample) |>
3536
mutate(across(everything(), ~ as.numeric(as.character(.)))) |>
3637
mutate(source = "AVMNAlpha2")
38+
df_a1Bactrian <- as_tibble(mcmc_a1Bactrian) |> select(-Sample) |>
39+
mutate(across(everything(), ~ as.numeric(as.character(.)))) |>
40+
mutate(source = "BactrianAlpha1")
3741
df_a2Bactrian <- as_tibble(mcmc_a2Bactrian) |> select(-Sample) |>
3842
mutate(across(everything(), ~ as.numeric(as.character(.)))) |>
3943
mutate(source = "BactrianAlpha2")
@@ -54,7 +58,8 @@ colMeans(df_mcmc2[,1:4])
5458
sapply(df_mcmc2[, 1:4], var)
5559

5660

57-
df_all <- bind_rows(df_sim1, df_sim2, df_no_prior, df_mcmc1, df_mcmc2, df_a2AVMN, df_a2Bactrian)
61+
df_all <- bind_rows(df_sim1, df_sim2, df_no_prior, df_mcmc1, df_mcmc2,
62+
df_a2AVMN, df_a1Bactrian, df_a2Bactrian)
5863
df_all_long <- df_all |>
5964
pivot_longer(cols = 1:4, names_to = "dimension", values_to = "value")
6065

2.84 KB
Binary file not shown.

0 commit comments

Comments
 (0)