CRAN
ashr 2.2-32
Methods for Adaptive Shrinkage, using Empirical Bayes
Released Feb 22, 2019 by Peter Carbonetto
Dependencies
etrunct 0.1 Matrix 1.2-15 truncnorm 1.0-8 Rcpp foreach 1.4.4 assertthat 0.2.0 doParallel 1.0.14 mixsqp 0.1-97 pscl 1.5.2 SQUAREM 2017.10-1
The R package 'ashr' implements an Empirical Bayes approach for large-scale hypothesis testing and false discovery rate (FDR) estimation based on the methods proposed in M. Stephens, 2016, "False discovery rates: a new deal",
Installation
Maven
This package can be included as a dependency from a Java or Scala project by including
the following your project's pom.xml
file.
Read more
about embedding Renjin in JVM-based projects.
<dependencies> <dependency> <groupId>org.renjin.cran</groupId> <artifactId>ashr</artifactId> <version>2.2-32-b1</version> </dependency> </dependencies> <repositories> <repository> <id>bedatadriven</id> <name>bedatadriven public repo</name> <url>https://nexus.bedatadriven.com/content/groups/public/</url> </repository> </repositories>
Renjin CLI
If you're using Renjin from the command line, you load this library by invoking:
library('org.renjin.cran:ashr')
Test Results
This package was last tested against Renjin 0.9.2724 on Feb 24, 2019.
- ash-examples
- ashci-examples
- ashr,_context_unclear.comp_postmean2_is_0_for_null_E1
- ashr,_context_unclear.comp_postmean2_is_0_for_null_E2
- ashr,_context_unclear.comp_postmean2_is_0_for_null_E3
- ashr,_context_unclear.comp_postmean2_is_0_for_null_E4
- ashr,_context_unclear.comp_postmean2_is_0_for_null_E5
- ashr,_context_unclear.comp_postmean2_unimix_matches_simulations_E1
- ashr,_context_unclear.comp_postmean2_unimix_matches_simulations_E2
- ashr,_context_unclear.my_e2truncnorm_matches_simulations
- ashr,_context_unclear.posterior_means_and_sds_computed_for_unimix_from_NAs_match_prior_mean_and_sd
- ashr,_context_unclear.posterior_means_and_sds_computed_for_unimix_from_very_flat_prior_are_correct
- ashr_"df"_argument.df_switches
- ashr_comparisons_with_previous_versions.new_results_match_old_ones_
- ashr_convolved_density_computations.comp_postprob_is_numerically_stable_E1
- ashr_convolved_density_computations.comp_postprob_is_numerically_stable_E2
- ashr_convolved_density_computations.exp(log_comp_dens_conv)_gives_same_results_as_comp_dens_conv_E1
- ashr_convolved_density_computations.exp(log_comp_dens_conv)_gives_same_results_as_comp_dens_conv_E2
- ashr_convolved_density_computations.exp(log_comp_dens_conv)_gives_same_results_as_comp_dens_conv_E3
- ashr_convolved_density_computations.exp(log_comp_dens_conv)_gives_same_results_as_comp_dens_conv_E4
- ashr_convolved_density_computations.exp(log_comp_dens_conv)_gives_same_results_as_comp_dens_conv_E5
- ashr_convolved_density_computations.normalmix_functions_behave_as_expected
- ashr_credible_intervals.CI_result_works_for_uniform_prior
- ashr_likelihood_computations.calc_logLR_is_0_for_when_g_is_null_E1
- ashr_likelihood_computations.calc_logLR_is_0_for_when_g_is_null_E2
- ashr_likelihood_computations.calc_loglik_returns_warning_when_called_with_wrong_model
- ashr_likelihood_computations.calc_null_loglik_gives_expected_answer_under_normal_E1
- ashr_likelihood_computations.calc_null_loglik_gives_expected_answer_under_normal_E2
- ashr_likelihood_computations.calc_null_loglik_gives_expected_answer_under_normal_E3
- ashr_likelihood_computations.calc_null_loglik_gives_expected_answer_under_normal_E4
- ashr_likelihood_computations.calc_null_loglik_gives_expected_answer_under_normal_E5
- ashr_likelihood_computations.calc_null_loglik_gives_expected_answer_under_t_E1
- ashr_likelihood_computations.calc_null_loglik_gives_expected_answer_under_t_E2
- ashr_likelihood_computations.logLR_in_ash_object_matches_calc_logLR
- ashr_likelihood_computations.sum_of_calc_vlogLR_is_same_as_calc_logLR
- ashr_mode.ash_emits_error_if_try_to_use_mode_and_g
- ashr_mode.ash_mode_1_gives_same_results_as_mode_0_but_shifted_by_1
- ashr_mode.pm_on_zero_gives_expected_results
- ashr_moments.postsd_default_and_postmean2_default_don't_return_NaN's_or_negative_values_E1
- ashr_moments.postsd_default_and_postmean2_default_don't_return_NaN's_or_negative_values_E2
- ashr_optimization_algorithms.control_is_passed_to_optmethod_correctly_when_method_is_mixIP_E1
- ashr_optimization_algorithms.control_is_passed_to_optmethod_correctly_when_method_is_mixIP_E2
- ashr_posterior_sampling.get_post_sample_works_as_expected
- ashr_with_"unit"_prior.ash_emits_error_if_try_to_use_prior<1_without_VB
- ashr_with_"unit"_prior.ash_emits_error_if_try_to_use_prior=unit_without_VB
- ashr_with_1_data_sample.ash_works_with_one_observation
- ashr_with_Binomial_likelihoods.lik_binom_(identity_link)_fittced_g_is_close_to_true_g
- ashr_with_Binomial_likelihoods.lik_binom_(identity_link)_fitted_g_is_close_to_true_g
- ashr_with_Binomial_likelihoods.lik_binom_(identity_link)_with_big_n_gives_similar_answers_to_normal_likelihood
- ashr_with_Binomial_likelihoods.lik_binom_(logit_link)_fitted_g_is_close_to_true_g_E1
- ashr_with_Binomial_likelihoods.lik_binom_(logit_link)_fitted_g_is_close_to_true_g_E2
- ashr_with_Poisson_likelihoods.lik_pois_(identity_link)_fitted_g_is_close_to_true_g
- ashr_with_Poisson_likelihoods.lik_pois_(identity_link)_fitted_mode_is_close_to_true_mode
- ashr_with_Poisson_likelihoods.lik_pois_(identity_link)_with_high_intensities_gives_similar_answers_to_normal_likelihood
- ashr_with_Poisson_likelihoods.lik_pois_(log_link)_fitted_g_is_close_to_true_g
- ashr_with_Poisson_likelihoods.lik_pois_(log_link)_fitted_mode_is_close_to_true_mode
- ashr_with_half-uniform_mixture_priors.mixcompdist=+uniform_gives_all_non-negative_values_for_b_and_zero_for_a
- ashr_with_half-uniform_mixture_priors.mixcompdist=-uniform_gives_all_non-positive_values_for_a_and_zero_for_b
- ashr_with_logF_likelihood.logF_error_with_df=(10,10)_gives_similar_answers_to_normal_error
- ashr_with_missing_data.missing_data_don't_change_results
- ashr_with_mixture-of-truncated-normal_priors.comp_cdf_for_tnormal_gives_same_results_as_comp_cdf_for_normal_when_a=-Inf,_b=Inf
- ashr_with_mixture-of-truncated-normal_priors.comp_postmean_for_tnormal_gives_same_results_as_comp_postmean_for_normal_when_a=-Inf,_b=Inf
- ashr_with_mixture-of-truncated-normal_priors.comp_postsd_for_tnormal_gives_same_results_as_comp_postsd_for_normal_when_a=-Inf,_b=Inf_E1
- ashr_with_mixture-of-truncated-normal_priors.comp_postsd_for_tnormal_gives_same_results_as_comp_postsd_for_normal_when_a=-Inf,_b=Inf_E2
- ashr_with_mixture-of-truncated-normal_priors.compcdf_post_for_tnormal_gives_same_results_as_compcdf_post_for_normal_when_a=-Inf,_b=Inf
- ashr_with_mixture-of-truncated-normal_priors.compdens_conv_for_tnormal_gives_same_results_as_compdens_conv_for_normal_when_a=-Inf,_b=Inf
- ashr_with_mixture-of-truncated-normal_priors.log_compdens_conv_for_tnormal_gives_reasonable_results
- ashr_with_other_likelihoods.general_likelihood_with_multiple_df_works_E1
- ashr_with_other_likelihoods.general_likelihood_with_multiple_df_works_E2
- ashr_with_other_likelihoods.general_likelihood_with_multiple_df_works_E3
- ashr_with_other_likelihoods.general_likelihood_with_multiple_df_works_E4
- ashr_with_other_likelihoods.general_likelihood_with_multiple_df_works_E5
- ashr_with_other_likelihoods.general_likelihood_with_multiple_df_works_E6
- ashr_with_other_likelihoods.general_likelihood_with_multiple_df_works_E7
- ashr_with_other_likelihoods.general_likelihood_with_multiple_df_works_E8
- ashr_with_weighted_samples.optimization_with_weights_matches_expectations_E1
- ashr_with_weighted_samples.optimization_with_weights_matches_expectations_E2
- cdf_post-examples
- check_ashr_outputs.outputlevel_works_as_expected
- check_ashr_outputs.penloglik_produced_correctly_when_fixg=TRUE_and_outputlevel=5
- comp_cdf_post-examples
- comp_postsd-examples
- get_post_sample-examples
- igmix-examples
- lik_binom-examples
- lik_logF-examples
- lik_normal-examples
- lik_normalmix-examples
- lik_pois-examples
- lik_t-examples
- mixcdf-examples
- my_etruncnorm.my_etruncnorm_returns_expected_results_E1
- my_etruncnorm.my_etruncnorm_returns_expected_results_E2
- my_etruncnorm.my_etruncnorm_returns_expected_results_E3
- my_etruncnorm.my_etruncnorm_returns_expected_results_E4
- my_etruncnorm.my_etruncnorm_returns_expected_results_E5
- my_etruncnorm.my_etruncnorm_returns_expected_results_E6
- my_etruncnorm.my_etruncnorm_returns_expected_results_E7
- my_vtruncnorm.my_vtruncnorm_returns_expected_results_E1
- my_vtruncnorm.my_vtruncnorm_returns_expected_results_E2
- my_vtruncnorm.my_vtruncnorm_returns_expected_results_E3
- my_vtruncnorm.my_vtruncnorm_returns_expected_results_E4
- my_vtruncnorm.my_vtruncnorm_returns_expected_results_E5
- my_vtruncnorm.my_vtruncnorm_returns_expected_results_E6
- my_vtruncnorm.my_vtruncnorm_returns_expected_results_E7
- normalmix-examples
- pcdf_post-examples
- pruning_mixture_components_in_ashr.test_pruning_E1
- pruning_mixture_components_in_ashr.test_pruning_E2
- sanity_check_for_initial_g.The_sanity_check_on_g_passes_and_fails_as_expected_E1
- sanity_check_for_initial_g.The_sanity_check_on_g_passes_and_fails_as_expected_E2
- sanity_check_for_initial_g.The_sanity_check_on_g_passes_and_fails_as_expected_E3
- testthat
- truncated-normal_computations.ash_with_automatic_truncfun_gives_similar_answers_to_default
- truncated-normal_computations.gen_etruncFUN_gives_similar_answers_to_etruncnorm_and_etrunct
- truncated-normal_computations.gen_etruncFUN_single_gives_similar_answers_to_etruncnorm_and_etrunct_E1
- truncated-normal_computations.gen_etruncFUN_single_gives_similar_answers_to_etruncnorm_and_etrunct_E2
- unimix-examples
- vcdf_post-examples