describe_data: Describe data

Description Usage Arguments Examples

View source: R/describe-data.R

Description

describe_data provides numerous descriptive estimators and bootstrap confidence intervals for variable x. describe_data function is a "wrapper" for bmbstats function.

Usage

1
2
3
4
5
6
describe_data(
  x,
  estimator_function = data_estimators,
  control = model_control(),
  na.rm = FALSE
)

Arguments

x

Numeric vector

estimator_function

Function that takes x and na.rm parameters and return named numeric vector with parameter estimates. Default is data_estimators. Other functions that could be used are data_estimators_simple and data_estimators_robust. User can write their own function with needed estimators for which bootstrap confidence intervals are needed

control

Control object returned from model_control function. Use boot_type, boot_samples, boot_strata to setup bootstrap.

na.rm

Should NAs be removed? Default is FALSE

Examples

1
2
3
4
5
6
7
8
desc1 <- describe_data(
  iris$Sepal.Width,
  estimator_function = data_estimators_simple,
  control = model_control(confidence = 0.90, boot_samples = 1000)
)

desc1
plot(desc1)

mladenjovanovic/bmbstats documentation built on Aug. 5, 2020, 4:20 p.m.