Skip to content

Commit

Permalink
fix typos mentioned by andbarker, fixes #209 :)
Browse files Browse the repository at this point in the history
  • Loading branch information
njtierney committed Sep 3, 2018
1 parent 5d503e7 commit 682c27f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/articles/exploring-imputed-values.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/getting-started-w-naniar.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/naniar-visualisation.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/replace-with-na.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions docs/articles/special-missing-values.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vignettes/special-missing-values.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Data sometimes have special missing values to indicate specific reasons for miss

You might be interested in creating your own special missing values so that you can mark specific, known reasons for missingness. For example, an individual dropping out of a study, known instrument failure in weather instruments, or for values being censored in analysis. In these cases, the data is missing, but we have information about _why_ it is missing. Coding these cases as `NA` would cause us to lose this valuable information. Other stats programming languages like STATA, SAS, and SPSS have this capacity, but currently `R` does not. So, we need a way to create these special missing values.

We can use `recode_shadoe` to recode missingness by recoding the special missing value as something like `NA_reason`. `naniar` records these values in the `shadow` part of `nabular` data, which is a special dataframe that contains missingness information.
We can use `recode_shadow` to recode missingness by recoding the special missing value as something like `NA_reason`. `naniar` records these values in the `shadow` part of `nabular` data, which is a special dataframe that contains missingness information.

This vignette describes how to add special missing values using the
`recode_shadow()` function. First we consider some terminology to explain these ideas, if you are not familiar with the workflows in `naniar`.
Expand Down Expand Up @@ -96,7 +96,7 @@ To summarise, to use `recode_shadow`, the user provides the following informatio

* A variable that they want to effect (`recode_shadow(var = ...)`)
* A condition that they want to implement (`.where(condition ~ ...)`)
* A suffix for the new type of missing value (`.where(condition ~ suffix)`
* A suffix for the new type of missing value (`.where(condition ~ suffix)`)

Under the hood, this special missing value is recoded as a new factor level in the shadow matrix, so that every column is aware of all possible new values of missingness.

Expand Down

0 comments on commit 682c27f

Please sign in to comment.