estimate.listwise.deletion: Estimate Listwise Deletion

View source: R/dthelper-handling-missing-data.R

estimate.listwise.deletionR Documentation

Estimate Listwise Deletion

Description

Estimate number of missingness caused by listwise deletion

Usage

estimate.listwise.deletion(
  df,
  var = colnames(df),
  dp = 2,
  return.num = FALSE,
  return.perc = FALSE,
  print.text = TRUE
)

Arguments

df

data.frame object

var

Input column names (defaults to using all columns in df)

dp

Number of decimal places for percentage

return.num

If set to TRUE, returns number of missing cases

return.perc

If set to TRUE, returns percentage of missing cases

print.text

If set to FALSE, missing cases are not printed

Value

Default none. When return.num or return.perc equals TRUE, numeric object is returned


dennisteowh/dthelper documentation built on March 19, 2022, 11:42 a.m.