Skip to content

Commit

Permalink
version 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunodaissei authored and cran-robot committed Jan 19, 2020
1 parent 2b17a35 commit b62be3a
Show file tree
Hide file tree
Showing 201 changed files with 13,460 additions and 9,690 deletions.
49 changes: 27 additions & 22 deletions DESCRIPTION
@@ -1,10 +1,10 @@
Package: BayesianFROC
Type: Package
Title: FROC Analysis by Bayesian Approaches
Version: 0.2.0
Version: 0.2.1
Authors@R: person(given = "Issei",family = "Tsunoda",email = "tsunoda.issei1111@gmail.com", role = c("aut", "cre") )
Maintainer: Issei Tsunoda <tsunoda.issei1111@gmail.com>
Description: Execute BayesianFROC::fit_GUI_Shiny() for a graphical user interface. The free-response receiver operating characteristic (FROC) method developed by Chakraborty is a generalization of receiver operating characteristic analysis, but Chakraborty used a non-Bayesian approach. This package aims to reconstruct Chakraborty's technique using a Bayesian approach and to verify that our models fit practical datasets. We also develop hierarchical Bayesian models for comparing modalities with new methods. The ultimate aim of FROC analysis is to compare observer performances, which means comparing characteristics, such as area under the curve (AUC) or figure of merit (FOM). In this package, we only use the notion of AUC for modality comparison, where by "modality", we mean imaging methods such as Magnetic Resonance Imaging (MRI), Computed Tomography (CT), Positron Emission Tomography (PET), ..., etc. So there is a problem that which imaging method is better to detect lesions from shadows in radiographs. To solve modality comparison issues, this package provides new methods using hierarchical Bayesian models proposed by the author of this package. Using this package, one can obtain at least one conclusion that which imaging methods are better for finding lesions in radiographs with the case of your data. Fitting FROC statistical models is sometimes not so good, it can easily confirm by drawing FROC curves and comparing these curves and the points constructed by False Positive fractions (FPFs) and True Positive Fractions (TPFs), we can validate the goodness of fit intuitively. Such validation is also implemented by the Chi square goodness of fit statistics in the Bayesian context which means that the parameter is not deterministic, thus by integrating it with the posterior predictive measure, we get a desired value. To compare modalities (imaging methods: MRI, CT, PET, ... , etc), we evaluate AUCs for each modality. FROC is developed by Dev Chakraborty, his FROC model in his 1989 paper relies on the maximal likelihood methodology. The author modified and provided the alternative Bayesian FROC model. Strictly speaking, his model does not coincide with models in this package. In FROC context, we means by multiple reader and multiple case (MRMC) the case of the number of reader or modality is two or more. The MRMC data is available for functions of this package. I hope that medical researchers use not only the frequentist method but also alternative Bayesian methods. In medical research, many problems are considered under only frequentist methods, such as the notion of p-values. But p-value is sometimes misunderstood. Bayesian methods provide very simple, direct, intuitive answer for research questions. Combining frequentist methods with Bayesian methods, we can obtain more reliable answer for research questions. Please execute the following R scripts from the R (R studio) console, demo(demo_MRMC, package = "BayesianFROC"); demo(demo_srsc, package = "BayesianFROC"); demo(demo_stan, package = "BayesianFROC"); demo(demo_drawcurves_srsc, package = "BayesianFROC"); demo_Bayesian_FROC(); demo_Bayesian_FROC_without_pause(). References: Dev Chakraborty (1989) <doi:10.1118/1.596358> Maximum likelihood analysis of free - response receiver operating characteristic (FROC) data. Pre-print: Issei Tsunoda; Bayesian Models for free-response receiver operating characteristic analysis. See the vignettes for more details.
Description: Execute BayesianFROC::fit_GUI_Shiny() (or fit_GUI_Shiny_MRMC()) for a graphical user interface via Shiny. The free-response receiver operating characteristic (FROC) method developed by Chakraborty is a generalization of receiver operating characteristic analysis, but Chakraborty used a non-Bayesian approach. This package aims to reconstruct Chakraborty's technique using a Bayesian approach and to verify that our models fit practical datasets. We also develop hierarchical Bayesian models for comparing modalities with new methods. The ultimate aim of FROC analysis is to compare observer performances, which means comparing characteristics, such as area under the curve (AUC) or figure of merit (FOM). In this package, we only use the notion of AUC for modality comparison, where by "modality", we mean imaging methods such as Magnetic Resonance Imaging (MRI), Computed Tomography (CT), Positron Emission Tomography (PET), ..., etc. So there is a problem that which imaging method is better to detect lesions from shadows in radiographs. To solve modality comparison issues, this package provides new methods using hierarchical Bayesian models proposed by the author of this package. Using this package, one can obtain at least one conclusion that which imaging methods are better for finding lesions in radiographs with the case of your data. Fitting FROC statistical models is sometimes not so good, it can easily confirm by drawing FROC curves and comparing these curves and the points constructed by False Positive fractions (FPFs) and True Positive Fractions (TPFs), we can validate the goodness of fit intuitively. Such validation is also implemented by the Chi square goodness of fit statistics in the Bayesian context which means that the parameter is not deterministic, thus by integrating it with the posterior predictive measure, we get a desired value. To compare modalities (imaging methods: MRI, CT, PET, ... , etc), we evaluate AUCs for each modality. FROC is developed by Dev Chakraborty, his FROC model in his 1989 paper relies on the maximal likelihood methodology. The author modified and provided the alternative Bayesian FROC model. Strictly speaking, his model does not coincide with models in this package. In FROC context, we means by multiple reader and multiple case (MRMC) the case of the number of reader or modality is two or more. The MRMC data is available for functions of this package. I hope that medical researchers use not only the frequentist method but also alternative Bayesian methods. In medical research, many problems are considered under only frequentist methods, such as the notion of p-values. But p-value is sometimes misunderstood. Bayesian methods provide very simple, direct, intuitive answer for research questions. Combining frequentist methods with Bayesian methods, we can obtain more reliable answer for research questions. Please execute the following R scripts from the R (R studio) console, demo(demo_MRMC, package = "BayesianFROC"); demo(demo_srsc, package = "BayesianFROC"); demo(demo_stan, package = "BayesianFROC"); demo(demo_drawcurves_srsc, package = "BayesianFROC"); demo_Bayesian_FROC(); demo_Bayesian_FROC_without_pause(). References: Dev Chakraborty (1989) <doi:10.1118/1.596358> Maximum likelihood analysis of free - response receiver operating characteristic (FROC) data. Pre-print: Issei Tsunoda; Bayesian Models for free-response receiver operating characteristic analysis. See the vignettes for more details.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Expand All @@ -22,43 +22,48 @@ Collate: 'AFROC.R' 'Author_vs_Chakraborty_for_AUC.R' 'BayesianFROC.R'
'DrawCurves.R' 'Draw_an_area_of_AUC_for_srsc.R'
'FROC_via_ggplot.R' 'Make_TeX_file_for_summary.R'
'Phi__and__Phi_inv.R' 'QQQ.R' 'Rprofile.R'
'Simulation_Based_Calibration.R' 'StartupMessage.R'
'Simulation_Based_Calibration.R'
'Stan_model_minimal_incomplete.R' 'StartupMessage.R'
'StatisticForANOVA.R'
'Test_Null_Hypothesis_that_all_modalities_are_same.R'
'apply_foo.R' 'array_easy_example.R'
'array_of_hit_and_false_alarms_from_vector.R' 'check_rhat.R'
'array_of_hit_and_false_alarms_from_vector.R'
'check_hit_is_less_than_NL.R' 'check_rhat.R'
'chi_square_goodness_of_fit.R' 'clearWorkspace.R' 'color.R'
'convertFromJafroc.R' 'create_dataset.R' 'css_shiny.R'
'dark_theme.R' 'dataset_creator_for_many_Readers.R'
'dark_theme.R' 'dataset_creator_by_specifying_only_M_Q.R'
'dataset_creator_for_many_Readers.R'
'dataset_creator_new_version.R' 'demo_Bayesian_FROC.R'
'demo_Bayesian_FROC_without_pause.R'
'development_Tools_and_Memorandum.R' 'document_dataset_MRMC.R'
'document_dataset_srsc.R' 'document_true_param.R'
'draw_latent_distribution.R' 'error_message.R'
'draw_latent_distribution.R' 'empty_cell_shiny.R'
'error_message.R'
'error_message_on_imaging_device_rhat_values.R' 'ex.R'
'explanation_about_package_BayesianFROC.R'
'explanation_for_what_curves_are_drawn.R' 'extractAUC.R'
'extract_EAP_CI.R' 'extract_EAP_by_array.R'
'extract_estimates_MRMC.R' 'fffaaabbb.R' 'fit_Bayesian_FROC.R'
'fit_GUI.R' 'fit_GUI_MRMC.R' 'fit_GUI_MRMC_new.R'
'fit_GUI_Shiny.R' 'fit_GUI_dashboard.R'
'explanation_for_what_curves_are_drawn.R'
'extract_EAP_by_array.R'
'extract_data_frame_from_dataList_MRMC.R' 'fffaaabbb.R'
'fit_Bayesian_FROC.R' 'fit_GUI.R' 'fit_GUI_MRMC.R'
'fit_GUI_MRMC_new.R' 'fit_GUI_Shiny.R' 'fit_GUI_dashboard.R'
'fit_GUI_simple_from_apppp_file.R' 'fit_MRMC_versionTWO.R'
'foo_of_a_List_of_Arrays.R' 'get_posterior_variance.R'
'give_name_srsc_data.R'
'foo_of_a_List_of_Arrays.R' 'fut_GUI_MRMC_shiny.R'
'get_posterior_variance.R' 'give_name_srsc_data.R'
'initial_values_specification_for_stan_in_case_of_MRMC.R'
'install_imports.R' 'layout.R' 'm_q_c_vector_from_M_Q_C.R'
'make_true_parameter_MRMC.R' 'metadata_srsc_per_image.R'
'metadata_to_DrawCurve_MRMC.R' 'metadata_to_fit_MRMC.R'
'stanfitExtended.R' 'methods.R' 'methods_print.R'
'modelComparison.R' 'operator.R'
'make_true_parameter_MRMC.R' 'metadata.R' 'stanfitExtended.R'
'methods.R' 'methods_print.R' 'minimal_model_MRMC.R'
'minimal_model_MRMC2.R' 'minimal_model_MRMC2_to_check_causes.R'
'minimal_model_MRMC_development.R' 'modelComparison.R'
'operator.R'
'p_value_of_the_Bayesian_sense_for_chi_square_goodness_of_fit.R'
'pairs_plot_if_divergent_transition_occurred.R' 'pause.R'
'plotFROC.R' 'plot_FPF_and_TPF_from_a_dataset.R'
'plot_curve_and_hit_rate_and_false_rate_simultaneously.R'
'pnorm_or_qnorm.R' 'ppp.R' 'prior_predictor.R' 'prior_print.R'
'sbc.R' 'sbc_MRMC.R' 'showGraphicalModel.R'
'size_of_return_value.R' 'small_margin.R'
'snippet_for_BayesianFROC.R' 'sortAUC.R'
'save_an_R_object.R' 'sbc.R' 'sbc_MRMC.R'
'showGraphicalModel.R' 'size_of_return_value.R'
'small_margin.R' 'snippet_for_BayesianFROC.R' 'sortAUC.R'
'stability_of_AUC_ranking_in_case_of_MRMC_data.R'
'summarise_MRMC.R' 'summary_AUC_comparison_MRMC.R'
'summary_AUC_comparison_MRMC_with_crayon.R'
Expand All @@ -68,7 +73,7 @@ Collate: 'AFROC.R' 'Author_vs_Chakraborty_for_AUC.R' 'BayesianFROC.R'
'validation_MRMC_UNDER_CONSTRUCTION.R'
'validation_error_srsc.R' 'viewdata.R' 'waic.R'
'without_double_quote.R'
Packaged: 2019-10-25 03:30:47 UTC; 81909
Packaged: 2020-01-19 18:18:33 UTC; 81909
Author: Issei Tsunoda [aut, cre]
Repository: CRAN
Date/Publication: 2019-10-25 08:00:15 UTC
Date/Publication: 2020-01-19 19:20:06 UTC

0 comments on commit b62be3a

Please sign in to comment.