The RAM-OP Workflow

The RAM-OP Workflow is summarised in the diagram below.

RAM-OP workflow

The oldr package provides functions to use for all steps after data collection. These functions were developed specifically for the data structure created by the EpiData or the Open Data Kit collection tools. The data structure produced by these collection tools is shown by the dataset testSVY included in the oldr package.

testSVY
#> # A tibble: 192 × 90
#>      ad2   psu    hh    id    d1    d2    d3    d4    d5    f1   f2a   f2b   f2c
#>    <int> <int> <int> <int> <int> <int> <int> <int> <int> <int> <int> <int> <int>
#>  1     1   201     1     1     1    67     2     5     2     3     2     1     1
#>  2     1   201     2     1     1    74     1     2     2     3     2     1     1
#>  3     1   201     3     1     1    60     1     2     2     2     2     2     2
#>  4     1   201     3     2     1    60     2     2     2     3     2     2     1
#>  5     1   201     4     1     1    85     2     5     2     3     2     1     1
#>  6     1   201     5     1     2    86     1     5     1     4     2     1     1
#>  7     1   201     6     1     1    80     1     5     2     3     2     1     1
#>  8     1   201     6     2     1    60     2     5     2     3     2     2     1
#>  9     1   201     7     1     1    62     1     2     2     2     2     1     1
#> 10     1   201     8     1     1    72     2     5     2     2     2     1     1
#> # ℹ 182 more rows
#> # ℹ 77 more variables: f2d <int>, f2e <int>, f2f <int>, f2g <int>, f2h <int>,
#> #   f2i <int>, f2j <int>, f2k <int>, f2l <int>, f2m <int>, f2n <int>,
#> #   f2o <int>, f2p <int>, f2q <int>, f2r <int>, f2s <int>, f3 <int>, f4 <int>,
#> #   f5 <int>, f6 <int>, f7 <int>, a1 <int>, a2 <int>, a3 <int>, a4 <int>,
#> #   a5 <int>, a6 <int>, a7 <int>, a8 <int>, k6a <int>, k6b <int>, k6c <int>,
#> #   k6d <int>, k6e <int>, k6f <int>, ds1 <int>, ds2 <int>, ds3 <int>, …

Processing and recoding data

Once RAM-OP data is collected, it will need to be processed and recoded based on the definitions of the various indicators included in RAM-OP. The oldr package provides a suite functions to perform this processing and recoding. These functions and their syntax can be easily remembered as the create_op_ functions as their function names start with the create_ verb followed by the op_ label and then followed by an indicator or indicator set specific identifier or short name. Finally, an additional tag for male or female can be added to the main function to provide gender-specific outputs.

Currently, a standard RAM-OP can provide results for the 13 indicators or indicator sets for older people. The following table shows these indicators/indicator sets alongside the functions related to them:

Indicator / Indicator Set Related Functions
Demography and situation create_op_demo; create_op_demo_males; create_op_demo_females
Food intake create_op_food; create_op_food_males; create_op_food_females
Severe food insecurity create_op_hunger; create_op_hunger_males; create_op_hunger_females
Disability create_op_disability; create_op_disability_males; create_op_disability_females
Activities of daily living create_op_adl; create_op_adl_males; create_op_adl_females
Mental health and well-being create_op_mental; create_op_mental_males; create_op_mental_females
Dementia create_op_dementia; create_op_dementia_males; create_op_dementia_females
Health and health-seeking behaviour create_op_health; create_op_health_males; create_op_health_females
Sources of income create_op_income; create_op_income_males; create_op_income_females
Water, sanitation, and hygiene create_op_wash; create_op_wash_males; create_op_wash_females
Anthropometry and anthropometric screening coverage create_op_anthro; create_op_anthro_males; create_op_anthro_females
Visual impairment create_op_visual; create_op_visual_males; create_op_visual_females
Miscellaneous create_op_misc; create_op_misc_males; create_op_misc_females

A final function in the processing and recoding set - create_op - is provided to perform the processing and recoding of all indicators or indicator sets. This function allows for the specification of which indicators or indicator sets to process and recode which is useful for cases where not all the indicators or indicator sets have been collected or if only specific indicators or indicator sets need to be analysed or reported. This function also specifies whether a specific gender subset of the data is needed.

For a standard RAM-OP implementation, this step is performed in R as follows:

## Process and recode all standard RAM-OP indicators in the testSVY dataset
create_op(svy = testSVY)

which results in the following output:

#> # A tibble: 192 × 138
#>      psu  sex1  sex2 resp1 resp2 resp3 resp4   age ageGrp1 ageGrp2 ageGrp3
#>    <int> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <int>   <dbl>   <dbl>   <dbl>
#>  1   201     0     1     1     0     0     0    67       0       1       0
#>  2   201     1     0     1     0     0     0    74       0       0       1
#>  3   201     1     0     1     0     0     0    60       0       1       0
#>  4   201     0     1     1     0     0     0    60       0       1       0
#>  5   201     0     1     1     0     0     0    85       0       0       0
#>  6   201     1     0     0     1     0     0    86       0       0       0
#>  7   201     1     0     1     0     0     0    80       0       0       0
#>  8   201     0     1     1     0     0     0    60       0       1       0
#>  9   201     1     0     1     0     0     0    62       0       1       0
#> 10   201     0     1     1     0     0     0    72       0       0       1
#> # ℹ 182 more rows
#> # ℹ 127 more variables: ageGrp4 <dbl>, ageGrp5 <dbl>, marital1 <dbl>,
#> #   marital2 <dbl>, marital3 <dbl>, marital4 <dbl>, marital5 <dbl>,
#> #   marital6 <dbl>, alone <dbl>, MF <dbl>, DDS <dbl>, FG01 <dbl>, FG02 <dbl>,
#> #   FG03 <dbl>, FG04 <dbl>, FG05 <dbl>, FG06 <dbl>, FG07 <dbl>, FG08 <dbl>,
#> #   FG09 <dbl>, FG10 <dbl>, FG11 <dbl>, proteinRich <dbl>, pProtein <dbl>,
#> #   aProtein <dbl>, pVitA <dbl>, aVitA <dbl>, xVitA <dbl>, ironRich <dbl>, …

Estimating indicators

Once data has been processed and appropriate recoding for indicators has been performed, indicator estimates can now be calculated.

It is important to note that estimation procedures need to account for the sample design. All major statistical analysis software can do this (details vary). There are two things to note:

  • The RAM-OP sample is a two-stage sample. Subjects are sampled from a small number of primary sampling units (PSUs).

  • The RAM-OP sample is not prior weighted. This means that per-PSU sampling weights are needed. These are usually the populations of the PSU.

This sample design will need to be specified to statistical analysis software being used. If no weights are provided, then the analysis may produce estimates that place undue weight to observations from smaller communities with confidence intervals with lower than nominal coverage (i.e. they will be too narrow).

Blocked weighted bootstrap

The oldr package uses blocked weighted bootstrap estimation approach:

  • Blocked : The block corresponds to the PSU or cluster.

  • Weighted : The RAM-OP sampling procedure does not use population proportional sampling to weight the sample prior to data collection as is done with SMART type surveys. This means that a posterior weighting procedure is required. The standard RAM-OP software uses a “roulette wheel” algorithm to weight (i.e. by population) the selection probability of PSUs in bootstrap replicates.

A total of m PSUs are sampled with-replacement from the survey dataset where m is the number of PSUs in the survey sample. Individual records within each PSU are then sampled with-replacement. A total of n records are sampled with-replacement from each of the selected PSUs where n is the number of individual records in a selected PSU. The resulting collection of records replicates the original survey in terms of both sample design and sample size. A large number of replicate surveys are taken (the standard RAM-OP software uses \(r = 399\) replicate surveys but this can be changed). The required statistic (e.g. the mean of an indicator value) is applied to each replicate survey. The reported estimate consists of the 50th (point estimate), 2.5th (lower 95% confidence limit), and the 97.5th (upper 95% confidence limit) percentiles of the distribution of the statistic observed across all replicate surveys. The blocked weighted bootstrap procedure is outlined in the figure below.

Blocked weighted bootstrap

The principal advantages of using a bootstrap estimator are:

  • Bootstrap estimators work well with small sample sizes.

  • The method is non-parametric and uses empirical rather than theoretical distributions. There are no assumptions of things like normality to worry about.

  • The method allows estimation of the sampling distribution of almost any statistic using only simple computational methods.

PROBIT estimator

The prevalence of GAM, MAM, and SAM are estimated using a PROBIT estimator. This type of estimator provides better precision than a classic estimator at small sample sizes as discussed in the following literature:

World Health Organisation, Physical Status: The use and interpretation of anthropometry. Report of a WHO expert committee, WHO Technical Report Series 854, WHO, Geneva, 1995

Dale NM, Myatt M, Prudhon C, Briend, A, “Assessment of the PROBIT approach for estimating the prevalence of global, moderate and severe acute malnutrition from population surveys”, Public Health Nutrition, 1–6. https://doi.org/10.1017/s1368980012003345, 2012

Blanton CJ, Bilukha, OO, “The PROBIT approach in estimating the prevalence of wasting: revisiting bias and precision”, Emerging Themes in Epidemiology, 10(1), 2013, p. 8

An estimate of GAM prevalence can be made using a classic estimator:

\[ \text{prevalence} ~ = ~ \frac{\text{Number of respondents with MUAC < 210}}{\text{Total number of respondents}} \]

On the other hand, the estimate of GAM prevalence made from the RAM-OP survey data is made using a PROBIT estimator. The PROBIT function is also known as the inverse cumulative distribution function. This function converts parameters of the distribution of an indicator (e.g. the mean and standard deviation of a normally distributed variable) into cumulative percentiles. This means that it is possible to use the normal PROBIT function with estimates of the mean and standard deviation of indicator values in a survey sample to predict (or estimate) the proportion of the population falling below a given threshold. For example, for data with a mean MUAC of 256 mm and a standard deviation of 28 mm the output of the normal PROBIT function for a threshold of 210 mm is 0.0502 meaning that 5.02% of the population are predicted (or estimated) to fall below the 210 mm threshold.

Both the classic and the PROBIT methods can be thought of as estimating area:

RAM-OP estimators

The principal advantage of the PROBIT approach is that the required sample size is usually smaller than that required to estimate prevalence with a given precision using the classic method.

The PROBIT method assumes that MUAC is a normally distributed variable. If this is not the case then the distribution of MUAC is transformed towards normality.

The prevalence of SAM is estimated in a similar way to GAM. The prevalence of MAM is estimated as the difference between the GAM and SAM prevalence estimates:

\[ \widehat{\text{GAM prevalence}} ~ = ~ \widehat{\text{GAM prevalence}} - \widehat{\text{SAM prevalence}} \]

Classic estimator

The function estimateClassic in oldr implements the blocked weighted bootstrap classic estimator of RAM-OP. This function uses the bootClassic statistic to estimate indicator values.

The estimateClassic function is used for all the standard RAM-OP indicators except for anthropometry. The function is used as follows:

## Process and recode RAM-OP data (testSVY)
df <- create_op(svy = testSVY)

## Perform classic estimation on recoded data using appropriate weights provided by testPSU
classicDF <- estimate_classic(x = df, w = testPSU)

This results in (using limited replicates to reduce computing time):

#> # A tibble: 136 × 10
#>    INDICATOR EST.ALL LCL.ALL UCL.ALL EST.MALES LCL.MALES UCL.MALES EST.FEMALES
#>    <chr>       <dbl>   <dbl>   <dbl>     <dbl>     <dbl>     <dbl>       <dbl>
#>  1 resp1      0.818   0.807   0.893     0.817    0.719      0.888       0.856 
#>  2 resp2      0.0990  0.0698  0.157     0.0658   0.0306     0.127       0.116 
#>  3 resp3      0.0365  0.0167  0.0740    0.0658   0.0492     0.142       0.0268
#>  4 resp4      0.0156  0       0.0396    0.0244   0          0.0950      0     
#>  5 age       70.6    69.0    72.6      70.1     69.7       72.2        71.1   
#>  6 ageGrp1    0       0       0         0        0          0           0     
#>  7 ageGrp2    0.547   0.438   0.622     0.493    0.466      0.562       0.537 
#>  8 ageGrp3    0.214   0.155   0.278     0.268    0.214      0.377       0.213 
#>  9 ageGrp4    0.182   0.116   0.294     0.183    0.0860     0.261       0.213 
#> 10 ageGrp5    0.0469  0.0177  0.0573    0.0357   0.00244    0.0619      0.0180
#> # ℹ 126 more rows
#> # ℹ 2 more variables: LCL.FEMALES <dbl>, UCL.FEMALES <dbl>

PROBIT estimator

The function estimateProbit in oldr implements the blocked weighted bootstrap PROBIT estimator of RAM-OP. This function uses the probit_GAM and the probit_SAM statistic to estimate indicator values.

The estimateProbit function is used for only the anthropometric indicators. The function is used as follows:

## Process and recode RAM-OP data (testSVY)
df <- create_op(svy = testSVY)

## Perform probit estimation on recoded data using appropriate weights provided by testPSU
probitDF <- estimate_probit(x = df, w = testPSU)

This results in (using limited replicates to reduce computing time):

#> # A tibble: 3 × 10
#>   INDICATOR  EST.ALL   LCL.ALL UCL.ALL EST.MALES LCL.MALES UCL.MALES EST.FEMALES
#>   <chr>        <dbl>     <dbl>   <dbl>     <dbl>     <dbl>     <dbl>       <dbl>
#> 1 GAM       0.0308     8.72e-3 0.0463   8.33e- 3  5.86e- 4 0.0382        0.0360 
#> 2 MAM       0.0303     7.55e-3 0.0463   8.33e- 3  5.86e- 4 0.0382        0.0318 
#> 3 SAM       0.000181   1.68e-8 0.00489  8.13e-11  6.08e-29 0.0000116     0.00166
#> # ℹ 2 more variables: LCL.FEMALES <dbl>, UCL.FEMALES <dbl>

The two sets of estimates are then merged using the merge_op function as follows:

## Merge classicDF and probitDF
resultsDF <- merge_op(x = classicDF, y = probitDF)

resultsDF

which results in:

#> # A tibble: 139 × 13
#>    INDICATOR GROUP       LABEL TYPE  EST.ALL LCL.ALL UCL.ALL EST.MALES LCL.MALES
#>    <fct>     <fct>       <fct> <fct>   <dbl>   <dbl>   <dbl>     <dbl>     <dbl>
#>  1 resp1     Survey      Resp… Prop…  0.818   0.807   0.893     0.817    0.719  
#>  2 resp2     Survey      Resp… Prop…  0.0990  0.0698  0.157     0.0658   0.0306 
#>  3 resp3     Survey      Resp… Prop…  0.0365  0.0167  0.0740    0.0658   0.0492 
#>  4 resp4     Survey      Resp… Prop…  0.0156  0       0.0396    0.0244   0      
#>  5 age       Demography… Mean… Mean  70.6    69.0    72.6      70.1     69.7    
#>  6 ageGrp1   Demography… Self… Prop…  0       0       0         0        0      
#>  7 ageGrp2   Demography… Self… Prop…  0.547   0.438   0.622     0.493    0.466  
#>  8 ageGrp3   Demography… Self… Prop…  0.214   0.155   0.278     0.268    0.214  
#>  9 ageGrp4   Demography… Self… Prop…  0.182   0.116   0.294     0.183    0.0860 
#> 10 ageGrp5   Demography… Self… Prop…  0.0469  0.0177  0.0573    0.0357   0.00244
#> # ℹ 129 more rows
#> # ℹ 4 more variables: UCL.MALES <dbl>, EST.FEMALES <dbl>, LCL.FEMALES <dbl>,
#> #   UCL.FEMALES <dbl>

Creating charts

Once indicators has been estimated, the outputs can then be used to create relevant charts to visualise the results. A set of functions that start with the verb chart_op_ is provided followed by the indicator identifier to specify the type of indicator to visualise. The output of the function is a PNG file saved in the specified filename appended to the indicator identifier within the current working directory or saved in the specified filename appended to the indicator identifier in the specified directory path.

The following shows how to produce the chart for ADLs saved with filename test appended at the start inside a temporary directory:

chart_op_adl(x = create_op(testSVY), filename = file.path(tempdir(), "test"))
#> png 
#>   2

The resulting PNG file can be found in the temporary directory

file.exists(path = file.path(tempdir(), "test.png"))
#> [1] FALSE

and will look something like this:

RAM-OP chart showing information on activities of daily living

Reporting estimates

Finally, estimates can be reported through report tables. The report_op_table function facilitates this through the following syntax:

report_op_table(estimates = resultsDF, filename = file.path(tempdir(), "TEST"))

The resulting CSV file is found in the temporary directory

file.exists(path = file.path(tempdir(), "TEST.csv"))
#> [1] FALSE

and will look something like this:

#>                                                                         X  X.1
#> 1                                                                  Survey     
#> 2                                                                             
#> 3                                                               INDICATOR TYPE
#> 4                                                    Respondent : SUBJECT    2
#> 5                                               Respondent : FAMILY CARER    2
#> 6                                                Respondent : OTHER CARER    2
#> 7                                                      Respondent : OTHER    2
#> 8                                                                             
#> 9                                                Demography and situation     
#> 10                                                                            
#> 11                                                              INDICATOR TYPE
#> 12                              Mean self-reported age of subject (years)    1
#> 13                              Self-reported age between 50 and 59 years    2
#> 14                              Self-reported age between 60 and 69 years    2
#> 15                              Self-reported age between 70 and 79 years    2
#> 16                              Self-reported age between 80 and 89 years    2
#> 17                                    Self-reported age 90 years or older    2
#> 18                                                             Sex : MALE    2
#> 19                                                           Sex : FEMALE    2
#> 20                                Marital status : SINGLE (NEVER MARRIED)    2
#> 21                                               Marital status : MARRIED    2
#> 22                                       Marital status : LIVING TOGETHER    2
#> 23                                              Marital status : DIVORCED    2
#> 24                                               Marital status : WIDOWED    2
#> 25                                                 Marital status : OTHER    2
#> 26                                                    Subject lives alone    2
#> 27                                                                            
#> 28                                                                   Diet     
#> 29                                                                            
#> 30                                                              INDICATOR TYPE
#> 31  Meal frequency (i.e. number of meals and snacks in previous 24 hours)    1
#> 32                          Dietary diversity (count from 11 food groups)    1
#> 33                                Consumed CEREALS (in previous 24 hours)    2
#> 34                         Consumed ROOTS / TUBERS (in previous 24 hours)    2
#> 35                    Consumed FRUITS / VEGETABLES (in previous 24 hours)    2
#> 36                                   Consumed MEAT (in previous 24 hours)    2
#> 37                                   Consumed EGGS (in previous 24 hours)    2
#> 38                                   Consumed FISH (in previous 24 hours)    2
#> 39                 Consumed LEGUMES / NUTS / SEEDS (in previous 24 hours)    2
#> 40                   Consumed MILK / MILK PRODUCTS (in previous 24 hours)    2
#> 41                                   Consumed FATS (in previous 24 hours)    2
#> 42                                 Consumed SUGARS (in previous 24 hours)    2
#> 43                                  Consumed OTHER (in previous 24 hours)    2
#> 44                                                                            
#> 45                                                              Nutrients     
#> 46                                                                            
#> 47                                                              INDICATOR TYPE
#> 48                                             PROTEIN rich foods in diet    2
#> 49                          Protein rich plant sources of protein in diet    2
#> 50                         Protein rich animal sources of protein in diet    2
#> 51                                     Plant sources of Vitamin A in diet    2
#> 52                                    Animal sources of Vitamin A in diet    2
#> 53                                                Any source of Vitamin A    2
#> 54                                                IRON rich foods in diet    2
#> 55                                             CALCIUM rich foods in diet    2
#> 56                                                ZINC rich foods in diet    2
#> 57                                          Vitamin B1 rich foods in diet    2
#> 58                                          Vitamin B2 rich foods in diet    2
#> 59                                          Vitamin B3 rich foods in diet    2
#> 60                                          Vitamin B6 rich foods in diet    2
#> 61                                         Vitamin B12 rich foods in diet    2
#> 62                     Vitamin B1 / B2 / B3 / B6 / B12 rich foods in diet    2
#> 63                                                                            
#> 64                                                          Food Security     
#> 65                                                                            
#> 66                                                              INDICATOR TYPE
#> 67                         Little or no hunger in household (HHS = 0 / 1)    2
#> 68                             Moderate hunger in household (HHS = 2 / 3)    2
#> 69                           Severe hunger in household (HHS = 4 / 5 / 6)    2
#> 70                                                                            
#> 71                                                        Disability (WG)     
#> 72                                                                            
#> 73                                                              INDICATOR TYPE
#> 74                                                     Vision : D0 : None    2
#> 75                                                      Vision : D1 : Any    2
#> 76                                       Vision : D2 : Moderate or severe    2
#> 77                                                   Vision : D3:  Severe    2
#> 78                                                    Hearing : D0 : None    2
#> 79                                                     Hearing : D1 : Any    2
#> 80                                      Hearing : D2 : Moderate or severe    2
#> 81                                                  Hearing : D3:  Severe    2
#> 82                                                   Mobility : D0 : None    2
#> 83                                                    Mobility : D1 : Any    2
#> 84                                     Mobility : D2 : Moderate or severe    2
#> 85                                                 Mobility : D3:  Severe    2
#> 86                                                Remembering : D0 : None    2
#> 87                                                 Remembering : D1 : Any    2
#> 88                                  Remembering : D2 : Moderate or severe    2
#> 89                                              Remembering : D3:  Severe    2
#> 90                                                  Self-care : D0 : None    2
#> 91                                                   Self-care : D1 : Any    2
#> 92                                    Self-care : D2 : Moderate or severe    2
#> 93                                                Self-care : D3:  Severe    2
#> 94                                              Communicating : D0 : None    2
#> 95                                               Communicating : D1 : Any    2
#> 96                                Communicating : D2 : Moderate or severe    2
#> 97                                            Communicating : D3:  Severe    2
#> 98                              No disability in Washington Group domains    2
#> 99                             At least 1 domain with any disability (P1)    2
#> 100             At least 1 domain with moderate or severe disability (P2)    2
#> 101                         At least 1 domain with severe disability (P3)    2
#> 102   Multiple disability : More than one domain with any disability (PM)    2
#> 103                                                                           
#> 104                                            Activities of daily living     
#> 105                                                                           
#> 106                                                             INDICATOR TYPE
#> 107                                                 Independent : Bathing    2
#> 108                                                Independent : Dressing    2
#> 109                                               Independent : Toileting    2
#> 110                                 Independent : Transferring (mobility)    2
#> 111                                              Independent : Continence    2
#> 112                                                 Independent : Feeding    2
#> 113                                                        Katz ADL score    1
#> 114                                    Independent (Katz ADL score = 5/6)    2
#> 115                             Partial dependency (Katz ADL score = 3/4)    2
#> 116                            Severe dependency (Katz ADL score = 0/1/2)    2
#> 117      Subject has someone to help them with activities of daily living    2
#> 118                     Subject has ADL needs (ADL < 6) but has no helper    2
#> 119                                                                           
#> 120                                                         Mental health     
#> 121                                                                           
#> 122                                                             INDICATOR TYPE
#> 123                                       K6 psychological distress score    1
#> 124                              Serious psychological distress (K6 > 12)    2
#> 125                                Probable dementia by brief CSID screen    2
#> 126                                                                           
#> 127                                                                Health     
#> 128                                                                           
#> 129                                                             INDICATOR TYPE
#> 130                        Long term disease requiring regular medication    2
#> 131   Takes medication for long term disease requiring regular medication    2
#> 132           Not taking drugs for long term disease : NO DRUGS AVAILABLE    2
#> 133     Not taking drugs for long term disease : TOO EXPENSIVE / NO MONEY    2
#> 134     Not taking drugs for long term disease : TOO OLD TO LOOK FOR CARE    2
#> 135  Not taking drugs for long term disease : USE OF TRADITIONAL MEDICINE    2
#> 136             Not taking drugs for long term disease : DRUGS DON'T HELP    2
#> 137            Not taking drugs for long term disease : NO-ONE TO HELP ME    2
#> 138                      Not taking drugs for long term disease : NO NEED    2
#> 139                        Not taking drugs for long term disease : OTHER    2
#> 140              Not taking drugs for long term disease : NO REASON GIVEN    2
#> 141                         Recent illness (i.e. in the previous 2 weeks)    2
#> 142                                      Accessed care for recent illness    2
#> 143            Not accessing care for recent illness : NO DRUGS AVAILABLE    2
#> 144      Not accessing care for recent illness : TOO EXPENSIVE / NO MONEY    2
#> 145      Not accessing care for recent illness : TOO OLD TO LOOK FOR CARE    2
#> 146   Not accessing care for recent illness : USE OF TRADITIONAL MEDICINE    2
#> 147              Not accessing care for recent illness : DRUGS DON'T HELP    2
#> 148             Not accessing care for recent illness : NO-ONE TO HELP ME    2
#> 149                       Not accessing care for recent illness : NO NEED    2
#> 150                         Not accessing care for recent illness : OTHER    2
#> 151               Not accessing care for recent illness : NO REASON GIVEN    2
#> 152                     Bilateral pitting oedema (may not be nutritional)    2
#> 153       Visual impairment (visual acuity < 6 / 12) by tumbling E method    2
#> 154                                   Problems chewing food (self-report)    2
#> 155                                                                           
#> 156                                                                Income     
#> 157                                                                           
#> 158                                                             INDICATOR TYPE
#> 159                                       Has a personal source of income    2
#> 160                  Source of income : Agriculture / fishing / livestock    2
#> 161                                     Source of income : Wages / salary    2
#> 162                   Source of income : Sale of charcoal / bricks / etc.    2
#> 163                      Source of income : Trading (e.g. market or shop)    2
#> 164                                        Source of income : Investments    2
#> 165                 Source of income : Spending savings / sales of assets    2
#> 166                                            Source of income : Charity    2
#> 167          Source of income : Cash transfer / social security / welfare    2
#> 168                          Source of income : Other source(s) of income    2
#> 169                                                                           
#> 170                                                                  WASH     
#> 171                                                                           
#> 172                                                             INDICATOR TYPE
#> 173                                     Improved source of drinking water    2
#> 174                                                   Safe drinking water    2
#> 175                                          Improved sanitation facility    2
#> 176                               Improved non-shared sanitation facility    2
#> 177                                                                           
#> 178                                                                Relief     
#> 179                                                                           
#> 180                                                             INDICATOR TYPE
#> 181                                  Previously screened (MUAC or oedema)    2
#> 182                                 Anyone in household receives a ration    2
#> 183                      Received non-food relief items in previous month    2
#> 184                                                                           
#> 185                                                         Anthropometry     
#> 186                                                                           
#> 187                                                             INDICATOR TYPE
#> 188                                       Global acute malnutrition : GAM    2
#> 189                                     Moderate acute malnutrition : MAM    2
#> 190                                       Severe acute malnutrition : SAM    2
#>         X.2     X.3     X.4     X.5     X.6     X.7     X.8     X.9    X.10
#> 1                                                                          
#> 2       ALL                   MALES                 FEMALES                
#> 3       EST     LCL     UCL     EST     LCL     UCL     EST     LCL     UCL
#> 4    0.8177  0.8073  0.8927  0.8171  0.7189  0.8880  0.8559  0.8194  0.8819
#> 5    0.0990  0.0698  0.1573  0.0658  0.0306  0.1267  0.1161  0.0623  0.1588
#> 6    0.0365  0.0167  0.0740  0.0658  0.0492  0.1418  0.0268  0.0000  0.0726
#> 7    0.0156  0.0000  0.0396  0.0244  0.0000  0.0950  0.0000  0.0000  0.0091
#> 8                                                                          
#> 9                                                                          
#> 10      ALL                   MALES                 FEMALES                
#> 11      EST     LCL     UCL     EST     LCL     UCL     EST     LCL     UCL
#> 12  70.6458 69.0333 72.6396 70.0854 69.6562 72.1648 71.1161 68.9088 72.5447
#> 13   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 14   0.5469  0.4375  0.6219  0.4930  0.4662  0.5617  0.5366  0.4618  0.6531
#> 15   0.2135  0.1552  0.2781  0.2683  0.2140  0.3767  0.2131  0.1504  0.2929
#> 16   0.1823  0.1156  0.2938  0.1829  0.0860  0.2605  0.2131  0.1725  0.3095
#> 17   0.0469  0.0177  0.0573  0.0357  0.0024  0.0619  0.0180  0.0016  0.0452
#> 18   0.4219  0.3813  0.4813  1.0000  1.0000  1.0000  0.0000  0.0000  0.0000
#> 19   0.5781  0.5188  0.6188  0.0000  0.0000  0.0000  1.0000  1.0000  1.0000
#> 20   0.0417  0.0177  0.0542  0.0141  0.0000  0.0460  0.0385  0.0193  0.0566
#> 21   0.3125  0.2677  0.3844  0.5063  0.4376  0.5945  0.1481  0.0752  0.1838
#> 22   0.1094  0.0812  0.1510  0.1690  0.1022  0.2614  0.0820  0.0455  0.1387
#> 23   0.0938  0.0406  0.1167  0.1053  0.0619  0.1178  0.0492  0.0113  0.0858
#> 24   0.4427  0.4115  0.5167  0.1667  0.0811  0.3435  0.6759  0.6223  0.7833
#> 25   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 26   0.1354  0.0802  0.1771  0.1429  0.1185  0.2156  0.1017  0.0378  0.1421
#> 27                                                                         
#> 28                                                                         
#> 29      ALL                   MALES                 FEMALES                
#> 30      EST     LCL     UCL     EST     LCL     UCL     EST     LCL     UCL
#> 31   2.5312  2.3500  2.7260  2.6623  2.3454  2.7612  2.6757  2.4819  2.7454
#> 32   4.6562  4.2490  4.8208  4.7195  4.2290  5.1078  4.6949  4.5305  4.7408
#> 33   0.9115  0.8698  0.9542  0.9211  0.8828  0.9719  0.8934  0.8343  0.9720
#> 34   0.5573  0.4260  0.6031  0.5488  0.4247  0.6329  0.5865  0.5352  0.6214
#> 35   0.5729  0.5177  0.6844  0.5325  0.4460  0.6577  0.6260  0.5261  0.6779
#> 36   0.0625  0.0312  0.0865  0.0253  0.0000  0.0729  0.0714  0.0225  0.0901
#> 37   0.0208  0.0010  0.0417  0.0366  0.0129  0.0774  0.0185  0.0016  0.0582
#> 38   0.3594  0.2771  0.4135  0.4167  0.3471  0.6827  0.2459  0.1640  0.3090
#> 39   0.4062  0.3198  0.4573  0.4643  0.2784  0.5754  0.4426  0.4073  0.5841
#> 40   0.0208  0.0073  0.0500  0.0000  0.0000  0.0368  0.0385  0.0049  0.0810
#> 41   0.2135  0.1583  0.2646  0.2927  0.2299  0.3463  0.2288  0.1406  0.2595
#> 42   0.5156  0.4479  0.5656  0.4405  0.3698  0.5061  0.5405  0.5045  0.6382
#> 43   0.9740  0.9250  0.9844  0.9756  0.9611  1.0000  0.9820  0.9403  0.9896
#> 44                                                                         
#> 45                                                                         
#> 46      ALL                   MALES                 FEMALES                
#> 47      EST     LCL     UCL     EST     LCL     UCL     EST     LCL     UCL
#> 48   0.4740  0.3844  0.5198  0.4930  0.3186  0.6743  0.5225  0.4707  0.6170
#> 49   0.4062  0.3198  0.4573  0.4643  0.2784  0.5754  0.4426  0.4073  0.5841
#> 50   0.1146  0.0802  0.1354  0.0833  0.0186  0.1406  0.1250  0.0887  0.1794
#> 51   0.5729  0.5365  0.7302  0.5844  0.5024  0.6811  0.6607  0.5535  0.7243
#> 52   0.0573  0.0177  0.0677  0.0595  0.0129  0.0774  0.0673  0.0281  0.1012
#> 53   0.6146  0.5594  0.7510  0.6494  0.5284  0.6838  0.7049  0.5757  0.7405
#> 54   0.6823  0.6396  0.7625  0.6429  0.4974  0.8253  0.6757  0.6253  0.7133
#> 55   0.0208  0.0073  0.0500  0.0000  0.0000  0.0368  0.0385  0.0049  0.0810
#> 56   0.6458  0.5104  0.6927  0.7500  0.5283  0.8656  0.5902  0.5294  0.7048
#> 57   0.6771  0.5479  0.7396  0.7738  0.5921  0.8656  0.6486  0.6087  0.7477
#> 58   0.8385  0.7667  0.8656  0.8452  0.7073  0.8994  0.8482  0.8273  0.9148
#> 59   0.6458  0.5104  0.6927  0.7500  0.5283  0.8656  0.5902  0.5294  0.7048
#> 60   0.8906  0.8021  0.9115  0.8961  0.8302  0.9519  0.8750  0.8463  0.9220
#> 61   0.4323  0.2927  0.4802  0.4737  0.3929  0.6827  0.3214  0.2555  0.3884
#> 62   0.4010  0.2875  0.4740  0.4737  0.3707  0.6827  0.3136  0.2266  0.3683
#> 63                                                                         
#> 64                                                                         
#> 65      ALL                   MALES                 FEMALES                
#> 66      EST     LCL     UCL     EST     LCL     UCL     EST     LCL     UCL
#> 67   0.7865  0.7281  0.8510  0.7500  0.6620  0.8617  0.7869  0.7371  0.8507
#> 68   0.1562  0.0875  0.2198  0.2143  0.1196  0.3254  0.1463  0.1096  0.1691
#> 69   0.0156  0.0104  0.0458  0.0506  0.0000  0.0712  0.0278  0.0049  0.0504
#> 70                                                                         
#> 71                                                                         
#> 72      ALL                   MALES                 FEMALES                
#> 73      EST     LCL     UCL     EST     LCL     UCL     EST     LCL     UCL
#> 74   1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000
#> 75   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 76   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 77   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 78   1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000
#> 79   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 80   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 81   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 82   1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000
#> 83   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 84   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 85   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 86   1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000
#> 87   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 88   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 89   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 90   1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000
#> 91   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 92   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 93   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 94   1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000
#> 95   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 96   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 97   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 98   1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000  1.0000
#> 99   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 100  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 101  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 102  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 103                                                                        
#> 104                                                                        
#> 105     ALL                   MALES                 FEMALES                
#> 106     EST     LCL     UCL     EST     LCL     UCL     EST     LCL     UCL
#> 107  0.9688  0.9594  0.9885  0.9605  0.9146  0.9867  0.9910  0.9521  1.0000
#> 108  0.9948  0.9792  1.0000  0.9762  0.9408  1.0000  1.0000  0.9836  1.0000
#> 109  0.9948  0.9792  1.0000  0.9762  0.9408  1.0000  1.0000  0.9836  1.0000
#> 110  0.9844  0.9292  0.9927  0.9643  0.9132  0.9868  0.9643  0.9374  0.9981
#> 111  0.7552  0.6813  0.7885  0.7317  0.6897  0.8021  0.7143  0.6683  0.7567
#> 112  0.9948  0.9854  1.0000  1.0000  0.9664  1.0000  1.0000  1.0000  1.0000
#> 113  5.6615  5.5677  5.7229  5.6310  5.4771  5.7342  5.6475  5.5944  5.7293
#> 114  0.9844  0.9521  0.9990  0.9762  0.9408  1.0000  0.9821  0.9555  0.9982
#> 115  0.0052  0.0000  0.0448  0.0000  0.0000  0.0000  0.0179  0.0018  0.0445
#> 116  0.0052  0.0000  0.0146  0.0238  0.0000  0.0592  0.0000  0.0000  0.0000
#> 117  0.6094  0.4010  0.6385  0.5488  0.4646  0.7218  0.6036  0.5304  0.6735
#> 118  0.1094  0.0594  0.2000  0.1463  0.0677  0.2161  0.0678  0.0468  0.1532
#> 119                                                                        
#> 120                                                                        
#> 121     ALL                   MALES                 FEMALES                
#> 122     EST     LCL     UCL     EST     LCL     UCL     EST     LCL     UCL
#> 123 12.1979 11.4656 12.9135 11.5921 10.3411 13.0295 12.8559 11.8800 13.4668
#> 124  0.4896  0.4490  0.5635  0.4737  0.3683  0.5721  0.5179  0.4599  0.5874
#> 125  0.2031  0.1729  0.2729  0.1831  0.0927  0.3588  0.2321  0.1695  0.2847
#> 126                                                                        
#> 127                                                                        
#> 128     ALL                   MALES                 FEMALES                
#> 129     EST     LCL     UCL     EST     LCL     UCL     EST     LCL     UCL
#> 130  0.4375  0.3771  0.4813  0.3452  0.3096  0.4686  0.5447  0.4830  0.6030
#> 131  0.7865  0.6104  0.8644  0.6207  0.4254  0.7529  0.8197  0.7402  0.8803
#> 132  0.1538  0.0451  0.3193  0.2353  0.0182  0.6242  0.0909  0.0000  0.3284
#> 133  0.4286  0.1556  0.5976  0.2941  0.1733  0.5371  0.4545  0.3659  0.8714
#> 134  0.1111  0.0111  0.2507  0.0000  0.0000  0.0000  0.1875  0.0182  0.4364
#> 135  0.1111  0.0000  0.3427  0.2000  0.0286  0.5797  0.0000  0.0000  0.0000
#> 136  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 137  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 138  0.0000  0.0000  0.0947  0.0000  0.0000  0.0000  0.0000  0.0000  0.1182
#> 139  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 140  0.1538  0.0000  0.3524  0.1333  0.0000  0.4000  0.0909  0.0000  0.2250
#> 141  0.8333  0.7729  0.9146  0.8452  0.7406  0.9138  0.8770  0.8310  0.9481
#> 142  0.7987  0.7456  0.8434  0.7667  0.6747  0.8998  0.8692  0.8059  0.8973
#> 143  0.1034  0.0067  0.2063  0.0000  0.0000  0.3250  0.0714  0.0000  0.2353
#> 144  0.8667  0.6667  0.9305  0.7857  0.6000  0.9765  0.8000  0.6377  0.9857
#> 145  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 146  0.0244  0.0000  0.1224  0.1250  0.0000  0.2444  0.0000  0.0000  0.0000
#> 147  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 148  0.0000  0.0000  0.0908  0.0000  0.0000  0.0000  0.0556  0.0000  0.3221
#> 149  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 150  0.0000  0.0000  0.0348  0.0000  0.0000  0.0000  0.0000  0.0000  0.1455
#> 151  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
#> 152  0.0208  0.0010  0.0510  0.0260  0.0000  0.0659  0.0370  0.0036  0.0602
#> 153  0.3854  0.3104  0.4938  0.5395  0.4417  0.6254  0.3654  0.2553  0.4461
#> 154  0.2656  0.2417  0.3583  0.2532  0.1586  0.3603  0.3496  0.2657  0.4490
#> 155                                                                        
#> 156                                                                        
#> 157     ALL                   MALES                 FEMALES                
#> 158     EST     LCL     UCL     EST     LCL     UCL     EST     LCL     UCL
#> 159  0.5729  0.4823  0.6031  0.6197  0.5372  0.7556  0.5000  0.4188  0.5842
#> 160  0.3750  0.2865  0.4615  0.4675  0.3906  0.5549  0.2793  0.2285  0.3835
#> 161  0.1146  0.0615  0.1896  0.1842  0.0817  0.3320  0.0410  0.0019  0.0707
#> 162  0.0156  0.0010  0.0448  0.0506  0.0152  0.0834  0.0000  0.0000  0.0551
#> 163  0.0521  0.0271  0.1073  0.0263  0.0024  0.0976  0.0833  0.0557  0.1365
#> 164  0.0000  0.0000  0.0094  0.0000  0.0000  0.0000  0.0179  0.0000  0.0253
#> 165  0.0104  0.0000  0.0365  0.0366  0.0000  0.0517  0.0000  0.0000  0.0000
#> 166  0.0104  0.0010  0.0427  0.0253  0.0000  0.0511  0.0082  0.0000  0.0296
#> 167  0.3229  0.2552  0.3594  0.3158  0.1937  0.3879  0.3365  0.2484  0.4533
#> 168  0.0052  0.0000  0.0198  0.0000  0.0000  0.0338  0.0000  0.0000  0.0343
#> 169                                                                        
#> 170                                                                        
#> 171     ALL                   MALES                 FEMALES                
#> 172     EST     LCL     UCL     EST     LCL     UCL     EST     LCL     UCL
#> 173  0.5990  0.5521  0.6646  0.5732  0.4902  0.6848  0.6016  0.5433  0.6690
#> 174  0.6927  0.6292  0.7875  0.6203  0.5669  0.7135  0.7411  0.6759  0.7911
#> 175  0.2083  0.1885  0.3302  0.2338  0.1671  0.3733  0.2276  0.1858  0.3022
#> 176  0.2083  0.1844  0.3229  0.2338  0.1671  0.3708  0.2114  0.1839  0.2771
#> 177                                                                        
#> 178                                                                        
#> 179     ALL                   MALES                 FEMALES                
#> 180     EST     LCL     UCL     EST     LCL     UCL     EST     LCL     UCL
#> 181  0.0312  0.0156  0.0729  0.0122  0.0000  0.0555  0.0385  0.0036  0.0838
#> 182  0.0469  0.0260  0.0802  0.0357  0.0024  0.0802  0.0424  0.0184  0.0754
#> 183  0.0208  0.0052  0.0552  0.0366  0.0026  0.0802  0.0254  0.0018  0.0590
#> 184                                                                        
#> 185                                                                        
#> 186     ALL                   MALES                 FEMALES                
#> 187     EST     LCL     UCL     EST     LCL     UCL     EST     LCL     UCL
#> 188  0.0308  0.0087  0.0463  0.0083  0.0006  0.0382  0.0360  0.0088  0.0508
#> 189  0.0303  0.0075  0.0463  0.0083  0.0006  0.0382  0.0318  0.0069  0.0487
#> 190  0.0002  0.0000  0.0049  0.0000  0.0000  0.0000  0.0017  0.0000  0.0125

The RAM-OP workflow in R using pipe operators

The oldr package functions were designed in such a way that they can be piped to each other to provide the desired output. Below we use the base R pipe operator |>.

Piped operation to get output estimates table

testSVY |>
  create_op() |>
  estimate_op(w = testPSU, replicates = 9) |>
  report_op_table(filename = file.path(tempdir(), "TEST"))

This results in a CSV file TEST.report.csv in the temporary directory

file.exists(file.path(tempdir(), "TEST.report.csv"))
#> [1] TRUE

with the following structure:

#>                                                                         X  X.1
#> 1                                                                  Survey     
#> 2                                                                             
#> 3                                                               INDICATOR TYPE
#> 4                                                    Respondent : SUBJECT    2
#> 5                                               Respondent : FAMILY CARER    2
#> 6                                                Respondent : OTHER CARER    2
#> 7                                                      Respondent : OTHER    2
#> 8                                                                             
#> 9                                                Demography and situation     
#> 10                                                                            
#> 11                                                              INDICATOR TYPE
#> 12                              Mean self-reported age of subject (years)    1
#> 13                              Self-reported age between 50 and 59 years    2
#> 14                              Self-reported age between 60 and 69 years    2
#> 15                              Self-reported age between 70 and 79 years    2
#> 16                              Self-reported age between 80 and 89 years    2
#> 17                                    Self-reported age 90 years or older    2
#> 18                                                             Sex : MALE    2
#> 19                                                           Sex : FEMALE    2
#> 20                                Marital status : SINGLE (NEVER MARRIED)    2
#> 21                                               Marital status : MARRIED    2
#> 22                                       Marital status : LIVING TOGETHER    2
#> 23                                              Marital status : DIVORCED    2
#> 24                                               Marital status : WIDOWED    2
#> 25                                                 Marital status : OTHER    2
#> 26                                                    Subject lives alone    2
#> 27                                                                            
#> 28                                                                   Diet     
#> 29                                                                            
#> 30                                                              INDICATOR TYPE
#> 31  Meal frequency (i.e. number of meals and snacks in previous 24 hours)    1
#> 32                          Dietary diversity (count from 11 food groups)    1
#> 33                                Consumed CEREALS (in previous 24 hours)    2
#> 34                         Consumed ROOTS / TUBERS (in previous 24 hours)    2
#> 35                    Consumed FRUITS / VEGETABLES (in previous 24 hours)    2
#> 36                                   Consumed MEAT (in previous 24 hours)    2
#> 37                                   Consumed EGGS (in previous 24 hours)    2
#> 38                                   Consumed FISH (in previous 24 hours)    2
#> 39                 Consumed LEGUMES / NUTS / SEEDS (in previous 24 hours)    2
#> 40                   Consumed MILK / MILK PRODUCTS (in previous 24 hours)    2
#> 41                                   Consumed FATS (in previous 24 hours)    2
#> 42                                 Consumed SUGARS (in previous 24 hours)    2
#> 43                                  Consumed OTHER (in previous 24 hours)    2
#> 44                                                                            
#> 45                                                              Nutrients     
#> 46                                                                            
#> 47                                                              INDICATOR TYPE
#> 48                                             PROTEIN rich foods in diet    2
#> 49                          Protein rich plant sources of protein in diet    2
#> 50                         Protein rich animal sources of protein in diet    2
#> 51                                     Plant sources of Vitamin A in diet    2
#> 52                                    Animal sources of Vitamin A in diet    2
#> 53                                                Any source of Vitamin A    2
#> 54                                                IRON rich foods in diet    2
#> 55                                             CALCIUM rich foods in diet    2
#> 56                                                ZINC rich foods in diet    2
#> 57                                          Vitamin B1 rich foods in diet    2
#> 58                                          Vitamin B2 rich foods in diet    2
#> 59                                          Vitamin B3 rich foods in diet    2
#> 60                                          Vitamin B6 rich foods in diet    2
#> 61                                         Vitamin B12 rich foods in diet    2
#> 62                     Vitamin B1 / B2 / B3 / B6 / B12 rich foods in diet    2
#> 63                                                                            
#> 64                                                          Food Security     
#> 65                                                                            
#> 66                                                              INDICATOR TYPE
#> 67                         Little or no hunger in household (HHS = 0 / 1)    2
#> 68                             Moderate hunger in household (HHS = 2 / 3)    2
#> 69                           Severe hunger in household (HHS = 4 / 5 / 6)    2
#> 70                                                                            
#> 71                                                        Disability (WG)     
#> 72                                                                            
#> 73                                                              INDICATOR TYPE
#> 74                                                     Vision : D0 : None    2
#> 75                                                      Vision : D1 : Any    2
#> 76                                       Vision : D2 : Moderate or severe    2
#> 77                                                   Vision : D3:  Severe    2
#> 78                                                    Hearing : D0 : None    2
#> 79                                                     Hearing : D1 : Any    2
#> 80                                      Hearing : D2 : Moderate or severe    2
#> 81                                                  Hearing : D3:  Severe    2
#> 82                                                   Mobility : D0 : None    2
#> 83                                                    Mobility : D1 : Any    2
#> 84                                     Mobility : D2 : Moderate or severe    2
#> 85                                                 Mobility : D3:  Severe    2
#> 86                                                Remembering : D0 : None    2
#> 87                                                 Remembering : D1 : Any    2
#> 88                                  Remembering : D2 : Moderate or severe    2
#> 89                                              Remembering : D3:  Severe    2
#> 90                                                  Self-care : D0 : None    2
#> 91                                                   Self-care : D1 : Any    2
#> 92                                    Self-care : D2 : Moderate or severe    2
#> 93                                                Self-care : D3:  Severe    2
#> 94                                              Communicating : D0 : None    2
#> 95                                               Communicating : D1 : Any    2
#> 96                                Communicating : D2 : Moderate or severe    2
#> 97                                            Communicating : D3:  Severe    2
#> 98                              No disability in Washington Group domains    2
#> 99                             At least 1 domain with any disability (P1)    2
#> 100             At least 1 domain with moderate or severe disability (P2)    2
#> 101                         At least 1 domain with severe disability (P3)    2
#> 102   Multiple disability : More than one domain with any disability (PM)    2
#> 103                                                                           
#> 104                                            Activities of daily living     
#> 105                                                                           
#> 106                                                             INDICATOR TYPE
#> 107                                                 Independent : Bathing    2
#> 108                                                Independent : Dressing    2
#> 109                                               Independent : Toileting    2
#> 110                                 Independent : Transferring (mobility)    2
#> 111                                              Independent : Continence    2
#> 112                                                 Independent : Feeding    2
#> 113                                                        Katz ADL score    1
#> 114                                    Independent (Katz ADL score = 5/6)    2
#> 115                             Partial dependency (Katz ADL score = 3/4)    2
#> 116                            Severe dependency (Katz ADL score = 0/1/2)    2
#> 117      Subject has someone to help them with activities of daily living    2
#> 118                     Subject has ADL needs (ADL < 6) but has no helper    2
#> 119                                                                           
#> 120                                                         Mental health     
#> 121                                                                           
#> 122                                                             INDICATOR TYPE
#> 123                                       K6 psychological distress score    1
#> 124                              Serious psychological distress (K6 > 12)    2
#> 125                                Probable dementia by brief CSID screen    2
#> 126                                                                           
#> 127                                                                Health     
#> 128                                                                           
#> 129                                                             INDICATOR TYPE
#> 130                        Long term disease requiring regular medication    2
#> 131   Takes medication for long term disease requiring regular medication    2
#> 132           Not taking drugs for long term disease : NO DRUGS AVAILABLE    2
#> 133     Not taking drugs for long term disease : TOO EXPENSIVE / NO MONEY    2
#> 134     Not taking drugs for long term disease : TOO OLD TO LOOK FOR CARE    2
#> 135  Not taking drugs for long term disease : USE OF TRADITIONAL MEDICINE    2
#> 136             Not taking drugs for long term disease : DRUGS DON'T HELP    2
#> 137            Not taking drugs for long term disease : NO-ONE TO HELP ME    2
#> 138                      Not taking drugs for long term disease : NO NEED    2
#> 139                        Not taking drugs for long term disease : OTHER    2
#> 140              Not taking drugs for long term disease : NO REASON GIVEN    2
#> 141                         Recent illness (i.e. in the previous 2 weeks)    2
#> 142                                      Accessed care for recent illness    2
#> 143            Not accessing care for recent illness : NO DRUGS AVAILABLE    2
#> 144      Not accessing care for recent illness : TOO EXPENSIVE / NO MONEY    2
#> 145      Not accessing care for recent illness : TOO OLD TO LOOK FOR CARE    2
#> 146   Not accessing care for recent illness : USE OF TRADITIONAL MEDICINE    2
#> 147              Not accessing care for recent illness : DRUGS DON'T HELP    2
#> 148             Not accessing care for recent illness : NO-ONE TO HELP ME    2
#> 149                       Not accessing care for recent illness : NO NEED    2
#> 150                         Not accessing care for recent illness : OTHER    2
#> 151               Not accessing care for recent illness : NO REASON GIVEN    2
#> 152                     Bilateral pitting oedema (may not be nutritional)    2
#> 153       Visual impairment (visual acuity < 6 / 12) by tumbling E method    2
#> 154                                   Problems chewing food (self-report)    2
#> 155                                                                           
#> 156                                                                Income     
#> 157                                                                           
#> 158                                                             INDICATOR TYPE
#> 159                                       Has a personal source of income    2
#> 160                  Source of income : Agriculture / fishing / livestock    2
#> 161                                     Source of income : Wages / salary    2
#> 162                   Source of income : Sale of charcoal / bricks / etc.    2
#> 163                      Source of income : Trading (e.g. market or shop)    2
#> 164                                        Source of income : Investments    2
#> 165                 Source of income : Spending savings / sales of assets    2
#> 166                                            Source of income : Charity    2
#> 167          Source of income : Cash transfer / social security / welfare    2
#> 168                          Source of income : Other source(s) of income    2
#> 169                                                                           
#> 170                                                                  WASH     
#> 171                                                                           
#> 172                                                             INDICATOR TYPE
#> 173                                     Improved source of drinking water    2
#> 174                                                   Safe drinking water    2
#> 175                                          Improved sanitation facility    2
#> 176                               Improved non-shared sanitation facility    2
#> 177                                                                           
#> 178                                                                Relief     
#> 179                                                                           
#> 180                                                             INDICATOR TYPE
#> 181                                  Previously screened (MUAC or oedema)    2
#> 182                                 Anyone in household receives a ration    2
#> 183                      Received non-food relief items in previous month    2
#> 184                                                                           
#> 185                                                         Anthropometry     
#> 186                                                                           
#> 187                                                             INDICATOR TYPE
#> 188                                       Global acute malnutrition : GAM    2
#> 189                                     Moderate acute malnutrition : MAM    2
#> 190                                       Severe acute malnutrition : SAM    2
#>          X.2      X.3      X.4      X.5      X.6      X.7      X.8      X.9
#> 1                                                                          
#> 2        ALL                      MALES                    FEMALES         
#> 3        EST      LCL      UCL      EST      LCL      UCL      EST      LCL
#> 4    86.4583  81.4583  92.2917  85.1852  76.7059  89.9485  87.2000  80.0000
#> 5     9.3750   4.4792  10.4167   8.3333   2.3952  13.1765  12.8000   4.9211
#> 6     4.1667   0.7292   7.6042   6.2500   1.4719  13.6350   1.6667   0.0000
#> 7     0.0000   0.0000   1.3542   1.1765   0.0000   3.6574   0.0000   0.0000
#> 8                                                                          
#> 9                                                                          
#> 10       ALL                      MALES                    FEMALES         
#> 11       EST      LCL      UCL      EST      LCL      UCL      EST      LCL
#> 12   70.4427  69.6448  73.4146  70.8382  69.0273  73.6346  72.3000  68.8515
#> 13    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 14   54.6875  44.3750  58.6458  47.4359  38.3333  61.6348  48.1818  40.9721
#> 15   25.5208  18.9583  28.0208  28.2051  18.5455  32.8431  20.9677  17.5219
#> 16   17.1875  11.9792  30.6250  16.8831   9.9618  29.9706  22.4000  16.1852
#> 17    4.1667   1.5625   8.8542   3.7037   1.2353  14.9550   2.5424   0.0000
#> 18   40.1042  36.1458  44.7917 100.0000 100.0000 100.0000   0.0000   0.0000
#> 19   59.8958  55.2083  63.8542   0.0000   0.0000   0.0000 100.0000 100.0000
#> 20    3.1250   1.2500   5.0000   0.0000   0.0000   4.5788   4.1667   1.1738
#> 21   31.2500  25.5208  35.7292  53.0864  40.4615  65.4194  12.7119   8.8142
#> 22   10.9375   6.7708  15.6250  16.2500   9.4398  25.4540   8.6957   4.2149
#> 23    5.2083   3.9583   9.3750   8.3333   0.7407  10.3529   6.0870   1.9773
#> 24   48.9583  40.9375  53.5417  19.7531  16.6900  25.8824  67.5000  60.0000
#> 25    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 26   13.5417   5.1042  15.6250  20.0000  11.5359  27.1765  10.9091   8.5185
#> 27                                                                         
#> 28                                                                         
#> 29       ALL                      MALES                    FEMALES         
#> 30       EST      LCL      UCL      EST      LCL      UCL      EST      LCL
#> 31    2.6146   2.5073   2.7385   2.5000   2.3479   2.6593   2.5806   2.4485
#> 32    4.5521   4.3250   4.7823   4.4706   4.0991   4.7072   4.6574   4.4303
#> 33   91.1458  87.0833  92.1875  94.0476  90.0247  96.4706  93.3884  88.4582
#> 34   51.5625  45.9375  60.8333  45.9459  37.5238  48.6214  53.6000  44.9630
#> 35   60.9375  53.3333  67.2917  48.8095  44.7647  64.5122  61.6000  57.5797
#> 36    7.2917   2.1875   8.6458   2.3529   0.0000   7.2272   5.4545   3.3403
#> 37    3.6458   1.1458   6.1458   2.3529   0.0000   7.3303   2.4000   0.1613
#> 38   31.7708  25.4167  40.3125  38.0952  31.5290  52.0000  26.0870  16.4667
#> 39   39.5833  33.8542  46.8750  44.1176  37.0532  51.8474  46.3636  33.9247
#> 40    2.6042   1.1458   4.5833   0.0000   0.0000   2.6232   4.6296   1.1780
#> 41   22.3958  15.2083  25.9375  22.0779  16.4109  32.0362  23.1481  16.8006
#> 42   47.3958  41.9792  52.6042  43.7500  29.6139  52.7828  56.5217  44.1697
#> 43   98.4375  95.5208 100.0000  97.6471  92.9930  99.7619  97.2222  92.6080
#> 44                                                                         
#> 45                                                                         
#> 46       ALL                      MALES                    FEMALES         
#> 47       EST      LCL      UCL      EST      LCL      UCL      EST      LCL
#> 48   46.8750  41.2500  50.8333  47.2973  37.5238  53.6364  53.6364  43.7276
#> 49   39.5833  33.8542  46.8750  44.1176  37.0532  51.8474  46.3636  33.9247
#> 50   11.9792   8.9583  17.3958   5.8824   0.0000  13.1638  10.8333   9.3066
#> 51   63.5417  55.2083  66.5625  53.5714  49.7562  67.7707  65.7407  58.4516
#> 52    6.2500   3.4375   9.1667   2.3529   0.0000   8.5973   6.4815   3.9091
#> 53   67.7083  56.4583  69.1667  58.1081  49.7562  70.2338  66.6667  63.0182
#> 54   66.1458  59.7917  71.8750  62.5000  53.8877  70.5182  66.6667  61.6994
#> 55    2.6042   1.1458   4.5833   0.0000   0.0000   2.6232   4.6296   1.1780
#> 56   60.4167  53.5417  68.3333  62.3529  57.8205  79.2941  57.2727  51.9683
#> 57   65.1042  57.1875  71.5625  63.5294  58.9744  81.8824  60.9091  55.5194
#> 58   81.7708  77.3958  86.4583  77.9221  68.9258  89.4118  82.4074  71.4098
#> 59   60.4167  53.5417  68.3333  62.3529  57.8205  79.2941  57.2727  51.9683
#> 60   84.8958  82.0833  89.8958  87.1795  84.1017  92.0397  87.0370  75.5215
#> 61   39.0625  32.2917  48.9583  40.2597  35.1923  54.5882  32.1739  23.8933
#> 62   38.0208  31.2500  47.3958  40.2597  34.1667  54.5882  31.3043  23.8933
#> 63                                                                         
#> 64                                                                         
#> 65       ALL                      MALES                    FEMALES         
#> 66       EST      LCL      UCL      EST      LCL      UCL      EST      LCL
#> 67   78.6458  72.5000  84.4792  74.1176  68.0800  82.6667  75.4545  72.4978
#> 68   15.6250   8.6458  22.5000  19.1176  13.8205  29.2383  14.0496   8.8333
#> 69    1.5625   0.7292   7.3958   2.9412   2.3952  10.0529   3.7037   2.5390
#> 70                                                                         
#> 71                                                                         
#> 72       ALL                      MALES                    FEMALES         
#> 73       EST      LCL      UCL      EST      LCL      UCL      EST      LCL
#> 74  100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000
#> 75    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 76    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 77    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 78  100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000
#> 79    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 80    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 81    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 82  100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000
#> 83    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 84    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 85    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 86  100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000
#> 87    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 88    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 89    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 90  100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000
#> 91    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 92    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 93    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 94  100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000
#> 95    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 96    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 97    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 98  100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000 100.0000
#> 99    0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 100   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 101   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 102   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 103                                                                        
#> 104                                                                        
#> 105      ALL                      MALES                    FEMALES         
#> 106      EST      LCL      UCL      EST      LCL      UCL      EST      LCL
#> 107  97.3958  95.9375  98.8542  94.1176  91.7901  97.2080  98.1818  94.0123
#> 108  98.9583  97.5000 100.0000  97.4026  94.2130  97.6014 100.0000  96.4436
#> 109  98.9583  97.5000 100.0000  97.4026  94.2130  97.6014 100.0000  96.4436
#> 110  96.8750  93.4375  99.2708  95.5882  93.6287  97.6014  97.5207  93.7689
#> 111  73.4375  68.3333  77.7083  72.8395  69.0649  79.7647  69.5652  61.6970
#> 112  99.4792  98.1250 100.0000  98.7013  97.3616 100.0000 100.0000 100.0000
#> 113   5.6302   5.5896   5.7188   5.5625   5.4745   5.6176   5.6281   5.5348
#> 114  96.8750  94.3750  99.3750  97.4026  94.2130  97.6014  98.3333  92.5884
#> 115   2.0833   0.0000   5.4167   0.0000   0.0000   0.0000   1.6667   0.0000
#> 116   1.0417   0.0000   1.9792   2.5974   2.3986   5.7870   0.0000   0.0000
#> 117  60.9375  50.3125  66.8750  53.0864  45.9202  59.9698  62.7273  51.2222
#> 118  10.9375   7.8125  14.6875  14.8148   7.4811  20.6710   7.4074   4.0696
#> 119                                                                        
#> 120                                                                        
#> 121      ALL                      MALES                    FEMALES         
#> 122      EST      LCL      UCL      EST      LCL      UCL      EST      LCL
#> 123  12.2760  11.7385  12.7927  11.2857  10.0238  13.7690  12.0417  11.5091
#> 124  47.9167  44.5833  54.6875  48.1481  36.4738  62.2564  48.3051  42.9450
#> 125  18.2292  12.8125  22.9167  15.2941   7.6667  25.5128  25.0000  19.0521
#> 126                                                                        
#> 127                                                                        
#> 128      ALL                      MALES                    FEMALES         
#> 129      EST      LCL      UCL      EST      LCL      UCL      EST      LCL
#> 130  45.3125  41.7708  51.3542  38.8235  33.0048  52.0000  54.6296  42.1358
#> 131  76.2500  66.6667  86.2250  66.6667  46.1072  87.2619  81.6327  68.3576
#> 132  11.1111   0.9091  23.3333  25.0000   2.2222  54.4444   0.0000   0.0000
#> 133  50.0000  25.0000  57.4269  22.2222   7.9365  35.7576  46.6667  18.9744
#> 134   7.6923   0.6452  20.0000   0.0000   0.0000   0.0000  18.1818   0.0000
#> 135  15.7895   0.9091  27.7778  25.0000   0.0000  44.1270   0.0000   0.0000
#> 136   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 137   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 138   0.0000   0.0000   8.5753   0.0000   0.0000   0.0000   0.0000   0.0000
#> 139   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 140  16.6667   9.8472  34.0909  22.2222   0.0000  55.0000  15.3846   0.0000
#> 141  87.5000  85.2083  93.7500  86.4865  77.0634  95.3704  88.1356  81.2290
#> 142  80.8383  74.8920  86.6821  79.2208  60.3077  87.6158  85.5769  83.2236
#> 143   9.6774   1.1429  18.2816   5.8824   0.0000  23.0000   0.0000   0.0000
#> 144  81.5789  69.4109  92.3399  82.1429  40.9524  88.1111  88.8889  63.5556
#> 145   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 146   3.1250   0.0000  14.2076  14.2857   0.0000  39.0476   0.0000   0.0000
#> 147   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 148   2.1739   0.0000   8.2857   0.0000   0.0000   0.0000   0.0000   0.0000
#> 149   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 150   0.0000   0.0000   2.1053   0.0000   0.0000   0.0000   0.0000   0.0000
#> 151   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
#> 152   2.6042   1.6667   4.4792   5.1282   0.0000   6.4448   2.7778   0.1613
#> 153  40.6250  33.7500  45.2083  48.2353  43.0007  54.1467  33.0435  25.6413
#> 154  32.8125  23.2292  36.0417  24.7059  18.0138  28.5882  33.0579  24.4205
#> 155                                                                        
#> 156                                                                        
#> 157      ALL                      MALES                    FEMALES         
#> 158      EST      LCL      UCL      EST      LCL      UCL      EST      LCL
#> 159  56.7708  49.0625  58.7500  57.5000  55.3464  74.5841  50.8475  43.7276
#> 160  38.0208  25.1042  45.2083  45.6790  38.9377  61.2215  31.6667  21.7981
#> 161  11.4583   6.1458  19.0625  17.2840   8.7843  27.3181   3.6364   1.0182
#> 162   2.6042   1.1458   3.1250   4.7059   1.7204  11.5432   0.0000   0.0000
#> 163   7.2917   1.6667  10.6250   1.1765   0.0000   4.6026   8.4746   5.0435
#> 164   1.5625   0.0000   2.0833   0.0000   0.0000   0.0000   1.6949   0.1613
#> 165   0.5208   0.0000   3.0208   3.7037   0.2500   8.7440   0.0000   0.0000
#> 166   1.0417   0.5208   5.5208   1.2821   0.0000   4.5595   0.9259   0.0000
#> 167  33.8542  26.1458  40.9375  28.3951  18.4420  38.3883  35.4545  29.5759
#> 168   0.5208   0.0000   2.5000   0.0000   0.0000   5.0651   0.0000   0.0000
#> 169                                                                        
#> 170                                                                        
#> 171      ALL                      MALES                    FEMALES         
#> 172      EST      LCL      UCL      EST      LCL      UCL      EST      LCL
#> 173  60.4167  54.7917  71.1458  60.8108  52.0611  70.5447  62.7273  59.4074
#> 174  67.7083  65.1042  76.7708  65.8824  56.1833  73.1445  72.5000  69.1141
#> 175  24.4792  19.5833  34.7917  26.9231  16.3810  39.2941  23.1405  18.0706
#> 176  23.4375  18.0208  34.7917  23.0769  16.3810  39.1574  20.3704  16.0565
#> 177                                                                        
#> 178                                                                        
#> 179      ALL                      MALES                    FEMALES         
#> 180      EST      LCL      UCL      EST      LCL      UCL      EST      LCL
#> 181   2.6042   0.3125   6.1458   2.5000   1.3198   7.2773   4.6296   0.3306
#> 182   5.7292   2.1875   7.5000   2.3529   0.0000   5.9412   5.7851   3.0293
#> 183   3.6458   0.6250   5.6250   2.5641   0.2597   6.8971   3.4783   1.0416
#> 184                                                                        
#> 185                                                                        
#> 186      ALL                      MALES                    FEMALES         
#> 187      EST      LCL      UCL      EST      LCL      UCL      EST      LCL
#> 188   2.6730   0.3945   5.7586   0.4157   0.1052   1.1918   3.1818   0.6050
#> 189   2.6634   0.3945   5.7577   0.4157   0.0201   1.1917   3.1409   0.4413
#> 190   0.0096   0.0000   0.3422   0.0000   0.0000   0.1795   0.2267   0.0082
#>         X.10
#> 1           
#> 2           
#> 3        UCL
#> 4    90.3108
#> 5    17.8925
#> 6     5.3535
#> 7     1.4721
#> 8           
#> 9           
#> 10          
#> 11       UCL
#> 12   73.6105
#> 13    0.0000
#> 14   58.6933
#> 15   33.7097
#> 16   30.8384
#> 17    7.9019
#> 18    0.0000
#> 19  100.0000
#> 20    8.3931
#> 21   22.3446
#> 22   12.4504
#> 23   10.3616
#> 24   79.3388
#> 25    0.0000
#> 26   18.6249
#> 27          
#> 28          
#> 29          
#> 30       UCL
#> 31    2.7274
#> 32    4.8887
#> 33   98.0655
#> 34   58.7858
#> 35   65.4268
#> 36    8.3931
#> 37    4.5512
#> 38   32.8482
#> 39   54.3026
#> 40    6.3052
#> 41   30.2493
#> 42   61.8610
#> 43   98.3867
#> 44          
#> 45          
#> 46          
#> 47       UCL
#> 48   58.0137
#> 49   54.3026
#> 50   15.4958
#> 51   70.9600
#> 52    9.0074
#> 53   74.8678
#> 54   75.0083
#> 55    6.3052
#> 56   66.7711
#> 57   72.4427
#> 58   89.9842
#> 59   66.7711
#> 60   92.4348
#> 61   39.9893
#> 62   39.1429
#> 63          
#> 64          
#> 65          
#> 66       UCL
#> 67   83.7853
#> 68   18.3587
#> 69    7.1513
#> 70          
#> 71          
#> 72          
#> 73       UCL
#> 74  100.0000
#> 75    0.0000
#> 76    0.0000
#> 77    0.0000
#> 78  100.0000
#> 79    0.0000
#> 80    0.0000
#> 81    0.0000
#> 82  100.0000
#> 83    0.0000
#> 84    0.0000
#> 85    0.0000
#> 86  100.0000
#> 87    0.0000
#> 88    0.0000
#> 89    0.0000
#> 90  100.0000
#> 91    0.0000
#> 92    0.0000
#> 93    0.0000
#> 94  100.0000
#> 95    0.0000
#> 96    0.0000
#> 97    0.0000
#> 98  100.0000
#> 99    0.0000
#> 100   0.0000
#> 101   0.0000
#> 102   0.0000
#> 103         
#> 104         
#> 105         
#> 106      UCL
#> 107 100.0000
#> 108 100.0000
#> 109 100.0000
#> 110  99.8148
#> 111  77.2413
#> 112 100.0000
#> 113   5.7154
#> 114 100.0000
#> 115   7.4116
#> 116   0.0000
#> 117  70.8238
#> 118  18.2963
#> 119         
#> 120         
#> 121         
#> 122      UCL
#> 123  13.7304
#> 124  56.9275
#> 125  30.7665
#> 126         
#> 127         
#> 128         
#> 129      UCL
#> 130  61.8555
#> 131  84.9709
#> 132  25.0182
#> 133  81.6923
#> 134  43.5897
#> 135   0.0000
#> 136   0.0000
#> 137   0.0000
#> 138  30.6667
#> 139   0.0000
#> 140  33.3333
#> 141  92.9802
#> 142  91.2527
#> 143  21.7778
#> 144 100.0000
#> 145   0.0000
#> 146   0.0000
#> 147   0.0000
#> 148  20.0000
#> 149   0.0000
#> 150   8.6061
#> 151   0.0000
#> 152   6.8509
#> 153  43.4711
#> 154  36.3131
#> 155         
#> 156         
#> 157         
#> 158      UCL
#> 159  58.0533
#> 160  40.4301
#> 161   8.1067
#> 162   3.2674
#> 163  11.7096
#> 164   3.1246
#> 165   0.0000
#> 166   2.7181
#> 167  40.3628
#> 168   1.6415
#> 169         
#> 170         
#> 171         
#> 172      UCL
#> 173  67.7343
#> 174  80.7256
#> 175  29.6057
#> 176  26.6850
#> 177         
#> 178         
#> 179         
#> 180      UCL
#> 181   7.9331
#> 182  13.5329
#> 183   8.3931
#> 184         
#> 185         
#> 186         
#> 187      UCL
#> 188  10.0482
#> 189   9.8285
#> 190   1.4918

Piped operation to get output an HTML report

If the preferred output is a report with combined charts and tables of results, the following piped operations can be performed:

testSVY |>
  create_op() |>
  estimate_op(w = testPSU, replicates = 9) |>
  report_op_html(
    svy = testSVY, filename = file.path(tempdir(), "ramOPreport")
  )

which results in an HTML file saved in the specified output directory that looks something like this:

Example of a RAM-OP HTML report