CRAN
anthro 0.9.1
Computation of the WHO Child Growth Standards
Released Mar 23, 2019 by Dirk Schumacher
This package can be loaded by Renjin but 30 out 142 tests failed.
Dependencies
Provides WHO Child Growth Standards (z-scores) with confidence intervals and standard errors around the prevalence estimates, taking into account complex sample designs. More information on the methods is available online:
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>anthro</artifactId> <version>0.9.1-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:anthro')
Test Results
This package was last tested against Renjin 0.9.2725 on Mar 26, 2019.
- age_groups.age_groups_are_computed_correctly_E1
- age_groups.age_groups_are_computed_correctly_E2
- age_groups.age_groups_are_computed_correctly_E3
- age_groups.age_groups_are_computed_correctly_E4
- age_groups.age_groups_are_computed_correctly_E5
- age_groups.age_groups_are_computed_correctly_E6
- anthro_prevalence-examples
- anthro_zscores-examples
- assertions.the_correct_parameter_name_is_used
- prevalence.anthro_prevalence():_checks_if_sw_is_NA_set_it_to_0_and_warn
- prevalence.anthro_prevalence():_computes_age_groups_with_full_precision
- prevalence.anthro_prevalence():_fails_if_any_sampling_weight_is_negative
- prevalence.anthro_prevalence():_filters_out_rows_with_NA_clusters
- prevalence.anthro_prevalence():_filters_out_rows_with_NA_strata
- prevalence.anthro_prevalence():_filters_out_rows_with_age_>_1826
- prevalence.anthro_prevalence():_it_fails_if_no_values_left_for_analysis
- prevalence.anthro_prevalence():_labels_wealth_quintiles_from_Q1:Q5
- prevalence.anthro_prevalence():_orders_Female_before_Male
- prevalence.anthro_prevalence():_orders_the_columns_by_indicator_and_cutoff
- prevalence.anthro_prevalence():_orders_wealth_quintiles_ascending
- prevalence.anthro_prevalence():_recycles_arguments
- prevalence.anthro_prevalence():_shows_result_also_for_empty_levels
- prevalence.anthro_prevalence():_warns_if_rows_get_excluded_for_prevalence_computation
- prevalence.anthro_prevalence():_warns_if_wealthq_is_not_NA,1,2,3,4,5_or_Q1:Q5_E1
- prevalence.anthro_prevalence():_warns_if_wealthq_is_not_NA,1,2,3,4,5_or_Q1:Q5_E2
- prevalence.bug20190222:_it_does_not_crash_if_all_values_are_NA_in_a_group
- prevalence.bug20190222:_it_does_not_crash_if_too_few_elements_are_in_a_group
- testthat
- utils.standardize_oedema_var:_all_other_values_become_'n'_E1
- utils.standardize_oedema_var:_all_other_values_become_'n'_E2
- utils.standardize_oedema_var:_all_other_values_become_'n'_E3
- utils.standardize_oedema_var_replaces_numerics_by_characters_E1
- utils.standardize_oedema_var_replaces_numerics_by_characters_E2
- utils.standardize_oedema_var_replaces_numerics_by_characters_E3
- utils.standardize_oedema_var_replaces_numerics_by_characters_E4
- utils.standardize_oedema_var_trims_white_spaces
- zscores_-_anthro_zscores.accepts_different_values_for_sex_E1
- zscores_-_anthro_zscores.accepts_different_values_for_sex_E2
- zscores_-_anthro_zscores.age_related_indicators_are_now_calculated_if_age_is_NA
- zscores_-_anthro_zscores.anthro_zscores():_adds_adjusted_lenhei_to_the_output_data_frame
- zscores_-_anthro_zscores.anthro_zscores():_adds_bmi_to_the_output_data_frame
- zscores_-_anthro_zscores.anthro_zscores():_does_not_compute_anything_if_sex_is_NA
- zscores_-_anthro_zscores.anthro_zscores():_fails_if_is_age_months_is_not_logical
- zscores_-_anthro_zscores.anthro_zscores():_fails_if_measure_has_invalid_values
- zscores_-_anthro_zscores.anthro_zscores():_fails_if_sex_is_not_numeric_or_character
- zscores_-_anthro_zscores.anthro_zscores():_transforms_age_in_months_to_age_in_days
- zscores_-_anthro_zscores.arguments_will_be_recycled
- zscores_-_anthro_zscores.fails_if_oedema_is_not_n,_N,_2,_y,_Y,_1,_NA_E1
- zscores_-_anthro_zscores.fails_if_oedema_is_not_n,_N,_2,_y,_Y,_1,_NA_E2
- zscores_-_anthro_zscores.fails_if_oedema_is_not_n,_N,_2,_y,_Y,_1,_NA_E3
- zscores_-_anthro_zscores.fails_if_oedema_is_not_n,_N,_2,_y,_Y,_1,_NA_E4
- zscores_-_anthro_zscores.fails_if_oedema_is_not_n,_N,_2,_y,_Y,_1,_NA_E5
- zscores_-_anthro_zscores.fails_if_oedema_is_not_n,_N,_2,_y,_Y,_1,_NA_E6
- zscores_-_anthro_zscores.fails_if_oedema_is_not_n,_N,_2,_y,_Y,_1,_NA_E7
- zscores_-_anthro_zscores.fails_if_oedema_is_not_n,_N,_2,_y,_Y,_1,_NA_E8
- zscores_-_anthro_zscores.fails_if_oedema_is_not_n,_N,_2,_y,_Y,_1,_NA_E9
- zscores_-_anthro_zscores.fails_if_sex_is_not_f,_F,_m,_M,_1,_2,_NA_E1
- zscores_-_anthro_zscores.fails_if_sex_is_not_f,_F,_m,_M,_1,_2,_NA_E2
- zscores_-_anthro_zscores.fails_if_sex_is_not_f,_F,_m,_M,_1,_2,_NA_E3
- zscores_-_anthro_zscores.fails_if_sex_is_not_f,_F,_m,_M,_1,_2,_NA_E4
- zscores_-_anthro_zscores.fails_if_sex_is_not_f,_F,_m,_M,_1,_2,_NA_E5
- zscores_-_anthro_zscores.fails_if_sex_is_not_f,_F,_m,_M,_1,_2,_NA_E6
- zscores_-_anthro_zscores.fails_if_sex_is_not_f,_F,_m,_M,_1,_2,_NA_E7
- zscores_-_anthro_zscores.length_for_age_uses_adjusted_lenhei_E1
- zscores_-_anthro_zscores.length_for_age_uses_adjusted_lenhei_E2
- zscores_-_anthro_zscores.oedema_can_also_be_numeric_E1
- zscores_-_anthro_zscores.oedema_can_also_be_numeric_E2
- zscores_-_anthro_zscores.oedema_is_all_'n'_by_default
- zscores_-_anthro_zscores.oedema_n_=_2_and_y_=_1_E1
- zscores_-_anthro_zscores.oedema_n_=_2_and_y_=_1_E2
- zscores_-_anthro_zscores.young_children_with_measured_standing_will_not_be_adjusted_E1
- zscores_-_anthro_zscores.young_children_with_measured_standing_will_not_be_adjusted_E2
- zscores_-_anthro_zscores.zcores_are_only_computed_for_children_younger_or_equal_to_60_months
- zscores_-_arm_circumference-for-age.it_returns_NA_if_armc_is_<=_0_E1
- zscores_-_arm_circumference-for-age.it_returns_NA_if_armc_is_<=_0_E2
- zscores_-_arm_circumference-for-age.it_returns_NA_if_armc_is_<=_0_E3
- zscores_-_bmi_for_age.anthro_zscore_bmi_for_age:_does_not_compute_zscores_where_no_growthstandards_are_present_E1
- zscores_-_bmi_for_age.anthro_zscore_bmi_for_age:_does_not_compute_zscores_where_no_growthstandards_are_present_E2
- zscores_-_bmi_for_age.anthro_zscore_bmi_for_age:_does_not_compute_zscores_where_no_growthstandards_are_present_E3
- zscores_-_bmi_for_age.anthro_zscore_bmi_for_age:_fails_if_age_is_not_numeric
- zscores_-_bmi_for_age.anthro_zscore_bmi_for_age:_fails_if_bmi_is_not_numeric
- zscores_-_bmi_for_age.anthro_zscore_bmi_for_age:_fails_if_sex_is_not_1_or_2
- zscores_-_bmi_for_age.anthro_zscore_bmi_for_age:_has_a_default_flag_threshold_of_-6;5_E1
- zscores_-_bmi_for_age.anthro_zscore_bmi_for_age:_has_a_default_flag_threshold_of_-6;5_E2
- zscores_-_bmi_for_age.anthro_zscore_bmi_for_age:_ignores_zscores_for_age_<_0_and_age_>=_1856_E1
- zscores_-_bmi_for_age.anthro_zscore_bmi_for_age:_ignores_zscores_for_age_<_0_and_age_>=_1856_E2
- zscores_-_bmi_for_age.anthro_zscore_bmi_for_age:_ignores_zscores_for_age_<_0_and_age_>=_1856_E3
- zscores_-_bmi_for_age.anthro_zscore_bmi_for_age:_ignores_zscores_for_age_<_0_and_age_>=_1856_E4
- zscores_-_bmi_for_age.anthro_zscore_bmi_for_age:_sets_result_to_NA_if_oedema_is_y
- zscores_-_bmi_for_age.it_returns_NA_if_headc_is_<=_0_E1
- zscores_-_bmi_for_age.it_returns_NA_if_headc_is_<=_0_E2
- zscores_-_bmi_for_age.it_returns_NA_if_headc_is_<=_0_E3
- zscores_-_head_circumference-for-age.it_returns_NA_if_headc_is_<=_0_E1
- zscores_-_head_circumference-for-age.it_returns_NA_if_headc_is_<=_0_E2
- zscores_-_head_circumference-for-age.it_returns_NA_if_headc_is_<=_0_E3
- zscores_-_length_for_age.anthro_zscore_length_for_age:_computes_the_z-score_for_length_for_age_E1
- zscores_-_length_for_age.anthro_zscore_length_for_age:_computes_the_z-score_for_length_for_age_E2
- zscores_-_length_for_age.anthro_zscore_length_for_age:_computes_the_z-score_for_length_for_age_E3
- zscores_-_length_for_age.anthro_zscore_length_for_age:_does_not_compute_zscores_where_no_growthstandards_are_present_E1
- zscores_-_length_for_age.anthro_zscore_length_for_age:_does_not_compute_zscores_where_no_growthstandards_are_present_E2
- zscores_-_length_for_age.anthro_zscore_length_for_age:_does_not_compute_zscores_where_no_growthstandards_are_present_E3
- zscores_-_length_for_age.anthro_zscore_length_for_age:_fails_if_age_is_not_numeric
- zscores_-_length_for_age.anthro_zscore_length_for_age:_fails_if_lenhei_is_not_numeric
- zscores_-_length_for_age.anthro_zscore_length_for_age:_fails_if_sex_is_not_1_or_2_E1
- zscores_-_length_for_age.anthro_zscore_length_for_age:_fails_if_sex_is_not_1_or_2_E2
- zscores_-_length_for_age.anthro_zscore_length_for_age:_has_a_default_flag_threshold_of_6_E1
- zscores_-_length_for_age.anthro_zscore_length_for_age:_has_a_default_flag_threshold_of_6_E2
- zscores_-_length_for_age.anthro_zscore_length_for_age:_ignores_zscores_for_age_<_0_and_age_>=_1856_E1
- zscores_-_length_for_age.anthro_zscore_length_for_age:_ignores_zscores_for_age_<_0_and_age_>=_1856_E2
- zscores_-_length_for_age.anthro_zscore_length_for_age:_ignores_zscores_for_age_<_0_and_age_>=_1856_E3
- zscores_-_length_for_age.anthro_zscore_length_for_age:_ignores_zscores_for_age_<_0_and_age_>=_1856_E4
- zscores_-_length_for_age.anthro_zscore_length_for_age:_returns_NA_if_weight_is_<=_0_E1
- zscores_-_length_for_age.anthro_zscore_length_for_age:_returns_NA_if_weight_is_<=_0_E2
- zscores_-_length_for_age.anthro_zscore_length_for_age:_returns_NA_if_weight_is_<=_0_E3
- zscores_-_subscapular_skinfold-for-age.it_returns_NA_if_subskin_is_<=_0_E1
- zscores_-_subscapular_skinfold-for-age.it_returns_NA_if_subskin_is_<=_0_E2
- zscores_-_subscapular_skinfold-for-age.it_returns_NA_if_subskin_is_<=_0_E3
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_computes_the_z-score_for_length_for_age_E1
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_computes_the_z-score_for_length_for_age_E2
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_computes_the_z-score_for_length_for_age_E3
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_does_not_compute_zscores_where_no_growthstandards_are_present_E1
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_does_not_compute_zscores_where_no_growthstandards_are_present_E2
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_does_not_compute_zscores_where_no_growthstandards_are_present_E3
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_fails_if_age_is_not_numeric
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_fails_if_sex_is_not_1_or_2
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_fails_if_weight_is_not_numeric
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_has_a_default_flag_threshold_of_-6;5_E1
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_has_a_default_flag_threshold_of_-6;5_E2
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_ignores_zscores_for_age_<_0_and_age_>=_1856_E1
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_ignores_zscores_for_age_<_0_and_age_>=_1856_E2
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_ignores_zscores_for_age_<_0_and_age_>=_1856_E3
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_ignores_zscores_for_age_<_0_and_age_>=_1856_E4
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_returns_NA_if_weight_is_<=_0_E1
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_returns_NA_if_weight_is_<=_0_E2
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_returns_NA_if_weight_is_<=_0_E3
- zscores_-_weight_for_age.anthro_zscore_weight_for_age:_sets_result_to_NA_if_oedema_is_y
- zscores_-_weight_for_lenhei.it_returns_NA_if_lenhei_is_<=_0_E1
- zscores_-_weight_for_lenhei.it_returns_NA_if_lenhei_is_<=_0_E2
- zscores_-_weight_for_lenhei.it_returns_NA_if_lenhei_is_<=_0_E3
- zscores_-_weight_for_lenhei.it_returns_NA_if_weight_is_<=_0_E1
- zscores_-_weight_for_lenhei.it_returns_NA_if_weight_is_<=_0_E2
- zscores_-_weight_for_lenhei.it_returns_NA_if_weight_is_<=_0_E3