cs_get_augmented_data {clinicalsignificance}R Documentation

Extract Augmented Data from a cs_analysis Object

Description

This function returns the patient-wise results, containing the considered pre and post intervention value, its raw change as well as all other change estimates calculated during the clinical significance analysis with the individual's clinical significance category. This function is only useful for individual level analyses because the group level analyses only yield group level results.

Usage

cs_get_augmented_data(x, ...)

## Default S3 method:
cs_get_augmented_data(x, ...)

## S3 method for class 'cs_distribution'
cs_get_augmented_data(x, ...)

## S3 method for class 'cs_statistical'
cs_get_augmented_data(x, ...)

## S3 method for class 'cs_combined'
cs_get_augmented_data(x, ...)

## S3 method for class 'cs_percentage'
cs_get_augmented_data(x, ...)

## S3 method for class 'cs_anchor_individual_within'
cs_get_augmented_data(x, ...)

Arguments

x

A cs_analysis object

...

Additional arguments

Value

A tibble with augmented data

See Also

Extractor functions cs_get_data(), cs_get_model(), cs_get_n(), cs_get_reliability(), cs_get_summary()

Examples

# Augmented data can be extracted for every individual approach
anchor_results <- claus_2020 |>
  cs_anchor(
    id,
    time,
    bdi,
    pre = 1,
    post = 4,
    mid_improvement = 9
  )


distribution_results <- claus_2020 |>
  cs_distribution(
    id,
    time,
    bdi,
    pre = 1,
    post = 4,
    reliability = 0.80
  )


distribution_results_hlm <- claus_2020 |>
  cs_distribution(
    id,
    time,
    bdi,
    rci_method = "HLM"
  )


statistical_results <- claus_2020 |>
  cs_statistical(
    id,
    time,
    bdi,
    pre = 1,
    post = 4,
    m_functional = 8,
    sd_functional = 8
  )


combined_results <- claus_2020 |>
  cs_combined(
    id,
    time,
    bdi,
    pre = 1,
    post = 4,
    m_functional = 8,
    sd_functional = 8,
    reliability = 0.80
  )


cs_get_augmented_data(anchor_results)
cs_get_augmented_data(distribution_results)
cs_get_augmented_data(distribution_results_hlm)
cs_get_augmented_data(statistical_results)
cs_get_augmented_data(combined_results)

[Package clinicalsignificance version 2.0.0 Index]