Learn R Programming

whomds

Introduction

This package provides fit-for-purpose functions for calculating and presenting the results from the Model Disability Survey, as used by the World Health Organization.

The Model Disability Survey (MDS) is a World Health Organization (WHO) general population survey instrument to assess the distribution of disability within a country or region, grounded in the International Classification of Functioning, Disability and Health. For more information, please go to https://www.who.int/health-topics/disability

Installation

You can install the release version of the package from CRAN with:

install.packages("whomds")

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("lindsayevanslee/whomds", build_vignettes = TRUE)

Example

A Rasch model can be used with the function rasch_mds(), like so:

library(whomds)

start <- rasch_mds(
  df = df_adults, 
  vars_metric = paste0("EF", 1:12),
  vars_id = "HHID", 
  vars_DIF = c("sex", "age_cat"),
  resp_opts = 1:5, 
  max_NA = 2,
  print_results = TRUE,
  path_parent = "/Users/lindsaylee/Desktop/",
  model_name = "Start",
  testlet_strategy = NULL,
  recode_strategy = NULL,
  drop_vars = NULL,
  split_strategy = NULL,
  comment = "Initial run"
)

More information

An extensive guide on using the package is available from a series of vignettes, in both English and Spanish. You can browse the vignettes by using:

browseVignettes("whomds")

Contact

Please contact the package maintainer with any questions or comments, or submit an issue.

Copy Link

Version

Install

install.packages('whomds')

Monthly Downloads

199

Version

1.1.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Lindsay Lee

Last Published

September 8th, 2023

Functions in whomds (1.1.1)

helper_checkrow

Check a vector for particular values
SepRel_1.0.1

Separation Reliability: Person Separation Reliability
df_adults

Example of WHO Model Disability Survey data for adults
rasch_df_nest

Nest data by age group
rasch_drop

Drop items from a Rasch Analysis
rasch_mds_children

Top-level function to perform Rasch Analysis on WHO Model Disability Survey data for children
rasch_model

Run the Rasch Model and print diagnostic results
rasch_split_age

Split all survey items by age category for a Rasch Model if they are not discrete
rasch_testlet

Create testlets of survey items for a Rasch Model
df_children

Example of WHO Model Disability Survey data for children
rasch_recode

Recode survey items for use in Rasch Analysis
fig_LID

Print a graph showing significant correlations between survey items
helper_indicator

Create indicators from data frame
helper_palette

Color palette for the MDS
rasch_factor

Calculate a factor analysis for a Rasch Model
helper_installation

Check installation of whomds is the most updated
rasch_mds

Top-level function to perform Rasch Analysis on WHO Model Disability Survey data
fig_density

Plot a density of a score
rasch_quality_children_print

Print results of analysis of Rasch Model quality
table_weightedpct

Calculate table of percentages or N of response distribution for survey items, survey weighted, disaggregated
whomds-package

whomds: A package for calculating results from WHO Model Disability Survey
helper_rowSums

Perform row sum
rasch_rawscore

Add the raw scores to the data and artificial individuals attaining the minimum and/or maximum
rasch_rescale_children

Rescale score from Rasch Analysis for children to range from 0 to 100
fig_dist

Plot a distribution of a score
rasch_rescale

Rescale score from Rasch Analysis to range from 0 to 100
table_basicstats

Compute basic statistics of the number of members per group per household
table_unweightedpctn

Compute unweighted percent and N for multiple variables, disaggregated
helper_varslist

Convert list to vector with unique elements
rasch_DIF

Perform analysis of Differential Item Functioning (DIF) for Rasch Model
rasch_split

Split survey items by categories for a Rasch Model
rasch_model_children

Run the multigroup and anchored Rasch Model
rasch_quality_children

Calculate quality of multigroup and anchored Rasch Models
fig_poppyramid

Print a population pyramid