acc_shape_or_scale: Function to compare observed versus expected distributions

Description Usage Arguments Value ALGORITHM OF THIS IMPLEMENTATION: See Also

View source: R/acc_shape_or_scale.R

Description

This implementation contrasts the empirical distribution of a measurement variables against assumed distributions. The approach is adapted from the idea of rootograms (Tukey 1977) which is also applicable for count data (Kleiber and Zeileis 2016).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
acc_shape_or_scale(
  resp_vars,
  dist_col,
  guess,
  par1,
  par2,
  end_digits,
  label_col,
  study_data,
  meta_data
)

Arguments

resp_vars

variable the name of the continuous measurement variable

dist_col

variable attribute the name of the variable attribute in meta_data that provides the expected distribution of a study variable

guess

logical estimate parameters

par1

numeric first parameter of the distribution if applicable

par2

numeric second parameter of the distribution if applicable

end_digits

logical check for end digits preferences

label_col

variable attribute the name of the column in the metadata with labels of variables

study_data

data.frame the data frame that contains the measurements

meta_data

data.frame the data frame that contains metadata attributes of study data

Value

a list with:

ALGORITHM OF THIS IMPLEMENTATION:

See Also

Online Documentation


dataquieR documentation built on Feb. 26, 2021, 5:08 p.m.