Skip to content

Commit

Permalink
imported content
Browse files Browse the repository at this point in the history
  • Loading branch information
rbcavanaugh committed Dec 27, 2020
1 parent 90fbc3b commit 4d3a7fb
Show file tree
Hide file tree
Showing 62 changed files with 21,595 additions and 73 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
title: "Effect Sizes in single-subject designs"
author: Rob Cavanaugh
date: 09-14-2020
output:
distill::distill_article:
self_contained: false
---


```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
knitr::opts_chunk$set(collapse = TRUE)
knitr::opts_chunk$set(dev.args=list(bg="transparent"))
```


```{r, message = F, warning = F, echo = F}
library(ggplot2)
library(dplyr)
library(see)
library(readr)
library(here)
df <- read_csv(here('data', 'shiny_data.csv')) %>%
mutate(sub_id = as.factor(sub_id),
phase = as.factor(phase))
```
```{r, message = F, warning = F, echo = F}
library(showtext)
font_add_google(name = "Roboto", family = "roboto",
regular.wt = 300, bold.wt = 500)
showtext_auto()
showtext_opts(dpi = 112)
```
People with aphasia respond in very different way to treatment. Changes can be immediate or delayed, fast or slow. Some people don't benefit at all. Measuring how much people with aphasia benefit from a treatment is important for justifying clinical services and accurately modeling predictors of treatment outcomes

In _A Systematic Appraisal of Effect Sizes in Aphasia Single-Case Design via Simulation_, we simulated data for 100 hypothetical people with aphasia who received a naming treatment in a multiple-baseline design. Then we compared different effect size measures that have been used in the aphasia single-case design literature. spoiler: they're not all the same.

<a href="https://rb-cavanaugh.shinyapps.io/scrollytell/" target="_blank"> Read more here</a>


```{r plot, echo = F}
df %>%
ggplot(aes(x = session, y = mean_correct, shape = phase, color = sub_id,)) +
geom_point(size = 4) +
geom_line(size = 1.5) +
geom_vline(aes(xintercept = 5.5), alpha = .5) +
scale_y_continuous(limits = c(0,1), labels = scales::percent) +
scale_x_continuous(labels = seq(1,15,1), breaks = seq(1,15,1)) +
theme_modern(base_size = 14) +
theme(legend.position = 'none',
panel.background = element_rect(fill = "transparent",colour = NA),
panel.grid.minor = element_blank(),
panel.grid.major = element_blank(),
plot.background = element_rect(fill = "transparent",colour = NA),
axis.title.x = element_text(size = 16, family = 'roboto', color = 'black'),
axis.title.y = element_text(size = 16, family = 'roboto', color = 'black'),
axis.text = element_text(color = 'black', family = 'roboto')) +
scale_color_brewer(type='qual', palette = 2) +
ylab('Accuracy') +
xlab("Session")
```


Original file line number Diff line number Diff line change
Expand Up @@ -85,37 +85,34 @@
</style>

<!--radix_placeholder_meta_tags-->
<title>Welcome to RC personal website</title>
<title>Effect Sizes in single-subject designs</title>

<meta property="description" itemprop="description" content="Welcome to our new blog, RC personal website. We hope you enjoy &#10;reading what we have to say!"/>


<!-- https://schema.org/Article -->
<meta property="article:published" itemprop="datePublished" content="2020-12-26"/>
<meta property="article:created" itemprop="dateCreated" content="2020-12-26"/>
<meta name="article:author" content="Nora Jones"/>
<meta property="article:published" itemprop="datePublished" content="2020-09-14"/>
<meta property="article:created" itemprop="dateCreated" content="2020-09-14"/>
<meta name="article:author" content="Rob Cavanaugh"/>

<!-- https://developers.facebook.com/docs/sharing/webmasters#markup -->
<meta property="og:title" content="Welcome to RC personal website"/>
<meta property="og:title" content="Effect Sizes in single-subject designs"/>
<meta property="og:type" content="article"/>
<meta property="og:description" content="Welcome to our new blog, RC personal website. We hope you enjoy &#10;reading what we have to say!"/>
<meta property="og:locale" content="en_US"/>

<!-- https://dev.twitter.com/cards/types/summary -->
<meta property="twitter:card" content="summary"/>
<meta property="twitter:title" content="Welcome to RC personal website"/>
<meta property="twitter:description" content="Welcome to our new blog, RC personal website. We hope you enjoy &#10;reading what we have to say!"/>
<meta property="twitter:title" content="Effect Sizes in single-subject designs"/>

<!--/radix_placeholder_meta_tags-->
<!--radix_placeholder_rmarkdown_metadata-->

<script type="text/json" id="radix-rmarkdown-metadata">
{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["title","description","author","date","output"]}},"value":[{"type":"character","attributes":{},"value":["Welcome to RC personal website"]},{"type":"character","attributes":{},"value":["Welcome to our new blog, RC personal website. We hope you enjoy \nreading what we have to say!\n"]},{"type":"list","attributes":{},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["name","url","affiliation","affiliation_url"]}},"value":[{"type":"character","attributes":{},"value":["Nora Jones"]},{"type":"character","attributes":{},"value":["https://example.com/norajones"]},{"type":"character","attributes":{},"value":["Spacely Sprockets"]},{"type":"character","attributes":{},"value":["https://example.com/spacelysprokets"]}]}]},{"type":"character","attributes":{},"value":["12-26-2020"]},{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["distill::distill_article"]}},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["self_contained"]}},"value":[{"type":"logical","attributes":{},"value":[false]}]}]}]}
{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["title","author","date","output"]}},"value":[{"type":"character","attributes":{},"value":["Effect Sizes in single-subject designs"]},{"type":"list","attributes":{},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["name"]}},"value":[{"type":"character","attributes":{},"value":["Rob Cavanaugh"]}]}]},{"type":"character","attributes":{},"value":["09-14-2020"]},{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["distill::distill_article"]}},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["self_contained"]}},"value":[{"type":"logical","attributes":{},"value":[false]}]}]}]}
</script>
<!--/radix_placeholder_rmarkdown_metadata-->

<script type="text/json" id="radix-resource-manifest">
{"type":"NULL"}
{"type":"character","attributes":{},"value":["effect-sizes-in-single-subject-designs_files/anchor-4.2.2/anchor.min.js","effect-sizes-in-single-subject-designs_files/bowser-1.9.3/bowser.min.js","effect-sizes-in-single-subject-designs_files/distill-2.2.21/template.v2.js","effect-sizes-in-single-subject-designs_files/figure-html5/plot-1.png","effect-sizes-in-single-subject-designs_files/header-attrs-2.5/header-attrs.js","effect-sizes-in-single-subject-designs_files/jquery-1.11.3/jquery.min.js","effect-sizes-in-single-subject-designs_files/webcomponents-2.0.0/webcomponents.js"]}
</script>
<!--radix_placeholder_navigation_in_header-->
<!--/radix_placeholder_navigation_in_header-->
Expand Down Expand Up @@ -1403,12 +1400,12 @@
</script>

<!--/radix_placeholder_distill-->
<script src="welcome_files/header-attrs-2.5/header-attrs.js"></script>
<script src="welcome_files/jquery-1.11.3/jquery.min.js"></script>
<script src="welcome_files/anchor-4.2.2/anchor.min.js"></script>
<script src="welcome_files/bowser-1.9.3/bowser.min.js"></script>
<script src="welcome_files/webcomponents-2.0.0/webcomponents.js"></script>
<script src="welcome_files/distill-2.2.21/template.v2.js"></script>
<script src="effect-sizes-in-single-subject-designs_files/header-attrs-2.5/header-attrs.js"></script>
<script src="effect-sizes-in-single-subject-designs_files/jquery-1.11.3/jquery.min.js"></script>
<script src="effect-sizes-in-single-subject-designs_files/anchor-4.2.2/anchor.min.js"></script>
<script src="effect-sizes-in-single-subject-designs_files/bowser-1.9.3/bowser.min.js"></script>
<script src="effect-sizes-in-single-subject-designs_files/webcomponents-2.0.0/webcomponents.js"></script>
<script src="effect-sizes-in-single-subject-designs_files/distill-2.2.21/template.v2.js"></script>
<!--radix_placeholder_site_in_header-->
<!--/radix_placeholder_site_in_header-->

Expand All @@ -1420,7 +1417,7 @@
<!--radix_placeholder_front_matter-->

<script id="distill-front-matter" type="text/json">
{"title":"Welcome to RC personal website","description":"Welcome to our new blog, RC personal website. We hope you enjoy \nreading what we have to say!","authors":[{"author":"Nora Jones","authorURL":"https://example.com/norajones","affiliation":"Spacely Sprockets","affiliationURL":"https://example.com/spacelysprokets","orcidID":""}],"publishedDate":"2020-12-26T00:00:00.000+00:00","citationText":"Jones, 2020"}
{"title":"Effect Sizes in single-subject designs","authors":[{"author":"Rob Cavanaugh","authorURL":"#","affiliation":"&nbsp;","affiliationURL":"#","orcidID":""}],"publishedDate":"2020-09-14T00:00:00.000+00:00","citationText":"Cavanaugh, 2020"}
</script>

<!--/radix_placeholder_front_matter-->
Expand All @@ -1430,19 +1427,32 @@
<!--/radix_placeholder_site_before_body-->

<div class="d-title">
<h1>Welcome to RC personal website</h1>
<h1>Effect Sizes in single-subject designs</h1>
<!--radix_placeholder_categories-->
<!--/radix_placeholder_categories-->
<p><p>Welcome to our new blog, RC personal website. We hope you enjoy reading what we have to say!</p></p>

</div>

<div class="d-byline">
Nora Jones <a href="https://example.com/norajones" class="uri">https://example.com/norajones</a> (Spacely Sprockets)<a href="https://example.com/spacelysprokets" class="uri">https://example.com/spacelysprokets</a>

<br/>12-26-2020
Rob Cavanaugh

<br/>09-14-2020
</div>

<div class="d-article">
<div class="layout-chunk" data-layout="l-body">

</div>
<div class="layout-chunk" data-layout="l-body">

</div>
<p>People with aphasia respond in very different way to treatment. Changes can be immediate or delayed, fast or slow. Some people don’t benefit at all. Measuring how much people with aphasia benefit from a treatment is important for justifying clinical services and accurately modeling predictors of treatment outcomes</p>
<p>In <em>A Systematic Appraisal of Effect Sizes in Aphasia Single-Case Design via Simulation</em>, we simulated data for 100 hypothetical people with aphasia who received a naming treatment in a multiple-baseline design. Then we compared different effect size measures that have been used in the aphasia single-case design literature. spoiler: they’re not all the same.</p>
<p><a href="https://rb-cavanaugh.shinyapps.io/scrollytell/" target="_blank"> Read more here</a></p>
<div class="layout-chunk" data-layout="l-body">
<p><img src="effect-sizes-in-single-subject-designs_files/figure-html5/plot-1.png" width="624" /></p>
</div>
<div class="sourceCode" id="cb1"><pre class="sourceCode r distill-force-highlighting-css"><code class="sourceCode r"></code></pre></div>
<!--radix_placeholder_article_footer-->
<!--/radix_placeholder_article_footer-->
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: "Simpler tools for clinical implementation of discourse analysis"
author: Rob Cavanaugh
date: 10-15-2020
repository_url: https://github.com/rbcavanaugh/WIM_MATTR
output:
distill::distill_article:
self_contained: false
---


```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
knitr::opts_chunk$set(collapse = TRUE)
knitr::opts_chunk$set(dev.args=list(bg="transparent"))
```


People with aphasia identify everyday communication as one of the highest priorities for treatment.^1^ One way of estimating everyday communication skills in clinical settings is discourse analysis. For example, people with aphasia are provided with one or more pictures and asked to describe the picture(s) or tell a story. However, analyzing these discourse samples requires time-intensive transcription, coding, and knowledge of software such as CLAN.^2^ For clinicians with limited time and ambitious productivity requirements, discourse analysis (as currently used by aphasia researchers) is not often feasible. In my experience in outpatient practice, 10 minutes scoring assessments (in addition to what I could score during the evaluation) while writing up an evaluation was a reasonable goal on a normal day.

One solution to this challenge is to minimize the time required for discourse analysis. For example, main concept analysis and core lexicon analysis^3^ are methods of measuring discourse without the need for precise transcription or discourse coding. Recently, Cunningham and Haley^4^ analyzed the use of two metrics for lexical diversity - a discourse measure that is thought to capture word retrieval skills in connected speech.^5^ What I find particularly interesting about these two metrics - the word information measure (WIM) and the moving average type-token ratio (MATTR) - is that they were analyzed using only orthographic transcriptions. Consequently, they don't require discourse coding required by CLAN. Instead they can be calculated using R.

Last spring, I worked on several projects where I built several interactive shiny apps^6^ using R so that our [team](https://lrcl.pitt.edu/) and collaborators could better understand complex data by interacting with it. As a proof of concept, last month I implemented the WIM and MATTR lexical diversity measures in a shiny app to demonstrate how straightforward it can be to provide a simple interface for these measures for clinicians to use. That proof-of-concept app is below ([and here](https://rb-cavanaugh.shinyapps.io/WIM_MATTR/)). The R code for the app is [here](https://github.com/rbcavanaugh/WIM_MATTR). Hopefully, it will be refined with instructions and norms as they come out. I also hope to incorporate an easy interface for main concept analysis and core lexicon in the future.

<iframe scrolling="no" src=" https://rb-cavanaugh.shinyapps.io/WIM_MATTR/" class="l-body-outset shaded" style="height: 100vh;"></iframe>

1. Wallace SJ, Worrall L, Rose T, et al. Which outcomes are most important to people with aphasia and their families? an international nominal group technique study framed within the ICF. Disabil Rehabil. 2017;39(14):1364–1379. doi:10.1080/09638288.2016.1194899

2. MacWhinney, B. (2000). The CHILDES Project: Tools for analyzing talk. Transcription format and programs (Vol. 1). Psychology Press.

3. Dalton, S. G., & Richardson, J. D. (2015). Core-lexicon and main-concept production during picture-sequence description in adults without brain damage and adults with aphasia. American Journal of Speech-Language Pathology, 24(4), S923–S938.

4. Cunningham, K. T., & Haley, K. L. (2020). Measuring Lexical Diversity for Discourse Analysis in Aphasia: Moving-Average Type–Token Ratio and Word Information Measure. Journal of Speech, Language, and Hearing Research, 63(3), 710-721.

5. Fergadiotis, G., Wright, H. H., & West, T. M. (2013). Measuring lexical diversity in narrative discourse of people with aphasia. American Journal of Speech-Language Pathology.

6. https://mastering-shiny.org/


Loading

0 comments on commit 4d3a7fb

Please sign in to comment.