Description Usage Arguments Value Examples
A function to uncenter binary variables that have been centered using the arm package
1 | uncenter(x)
|
x |
a vector with two distinct values that was previously a binary variable |
a vector, length x, with two distinct values, 0 and 1
1 2 3 | x <- rbinom(100, 1, prob = .3)
scaleX <- x - mean(x)
identical(x, as.integer(uncenter(scaleX)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.