gi_unrestricted_variable_appraisals: Get Input Information for RAT-STATS Style Unrestricted...

Description Usage Arguments Value Examples

View source: R/gi_unrestricted_variable_appraisals.R

Description

This function takes a nested list from a claimr sampling function and returns the information needed to perform a RAT-STATS' Unrestricted Variable Appraisals

Usage

1
2
3
4
5
6
gi_unrestricted_variable_appraisals(
  samp_obj,
  data_file_format,
  audited_values,
  sample_item_number
)

Arguments

samp_obj

A nested list returned from a claimr sampling function

data_file_format

"Data File Format" for RAT-STATS extrapolation

audited_values

Column with "number being reviewed by the user"

sample_item_number

Column with "sample item number"

Value

Information and dataset required for a RAT-STATS Unrestricted Variable Appraisals

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#Generate sampling frame  with an index id from 1 to N
math_test <- data.frame("sample_frame_sequence_id" = 1:1000,
                        "math" = rnorm(1000, mean = 75, sd = 15))

#Get output and input in lists
math_test_cobj <- rs_singlestage(df = math_test,
                                 seed_number = 100,
                                 audit_review = "Math Sample",
                                 quantity_to_generate = 20,
                                 quantity_of_spares = 5,
                                 frame_low = 1,
                                 frame_high = 1000)

gi_unrestricted_variable_appraisals(samp_obj = math_test_cobj,
                                    data_file_format = c("Audited Values"),
                                    audited_values = math,
                                    sample_item_number = sample_frame_sequence_id)

mncube/claimr documentation built on Dec. 21, 2021, 8:07 p.m.