# NOT RUN {
dataList <- create_dataList_MRMC()
fit_Bayesian_FROC(dataList,
summary = FALSE,
ite = 1111)
# In the above example, we use a default values for true parameters for
# the distributions. The reason why the default values exists is difficulty
# for the user who is not familiar with FROC data nor konws the resions
# in which parameters of FROC model move.
# So, in the Bayesian model is merely model for FROC data.
# If user input the abnormal data, then the model does not fit nor converge
# in the Hamiltonian Monte Carlo simulations.
plot_FPF_and_TPF_from_a_dataset(create_dataList_MRMC() )
#========================================================================================
# plot various MRMC datasets with fixed signal distribution but change thresholds
#========================================================================================
plot_FPF_and_TPF_from_a_dataset(create_dataList_MRMC( z.truth = c(0.1,
0.2,
0.3,
0.4)
))
plot_FPF_and_TPF_from_a_dataset(create_dataList_MRMC( z.truth = c(-0.1,
0.2,
0.3,
0.4)
))
plot_FPF_and_TPF_from_a_dataset(create_dataList_MRMC( z.truth = c(-1,
0.2,
0.3,
0.4)
))
plot_FPF_and_TPF_from_a_dataset(create_dataList_MRMC( z.truth = c(-1,
-0.2,
-0.3,
0.4)
))
plot_FPF_and_TPF_from_a_dataset(create_dataList_MRMC( z.truth = c(-1,
0.2,
0.3 )
))
plot_FPF_and_TPF_from_a_dataset(create_dataList_MRMC( z.truth = c(-1,
1.2,
2.3 )
))
plot_FPF_and_TPF_from_a_dataset(create_dataList_MRMC( z.truth = c(-1,
-0.5,
0,
1.2,
2.3,
3.3,
4)
))
plot_FPF_and_TPF_from_a_dataset(create_dataList_MRMC( z.truth = c(-1,
-0.5,
0,
1.2,
2.3,
3.3,
4,
5,
6)
))
plot_FPF_and_TPF_from_a_dataset(create_dataList_MRMC( z.truth = c(-1,
-0.5,
0,
1.2,
2.3,
3.3,
4,
5,
6,
7)
))
plot_FPF_and_TPF_from_a_dataset(create_dataList_MRMC( z.truth = c(-1,
-0.5,
0,
1.2,
2.3,
3.3,
4,
5,
6,
7,
8,
9,
10)
))
#========================================================================================
# Smoothing of Scatter Plot for FPF and TPF
#========================================================================================
v <- v_truth_creator_for_many_readers_MRMC_data(M=1,Q=17)
m <- mu_truth_creator_for_many_readers_MRMC_data(M=1,Q=17)
d <- create_dataList_MRMC(mu.truth = m,v.truth = v)
d<-metadata_to_fit_MRMC(d)
df <- data.frame(FPF = d$ffN, TPF = d$hhN)
# require(graphics)
dark_theme()
graphics::plot(df, main = "lowess(cars)")
graphics::lines(stats::lowess(df), col = 2)
graphics::lines(stats::lowess(df, f = .2), col = 3)
graphics::legend(5, 120, c(paste("f = ", c("2/3", ".2"))), lty = 1, col = 2:3)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab