Learn R Programming

clinicalsignificance (version 2.1.0)

cs_get_augmented_data: 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, ...)

# S3 method for default cs_get_augmented_data(x, ...)

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

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

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

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

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

Value

A tibble with augmented data

Arguments

x

A cs_analysis object

...

Additional arguments

See Also

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

Examples

Run this code
# 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)

Run the code above in your browser using DataLab