Description Usage Arguments Value Author(s) See Also Examples
This function computes the inverse of a logit transformation of the parameters.
1 | logit2_inv(x)
|
x |
A |
A vec
containing logit probabilities.
James Joseph Balamuta (JJB)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Set seed for reproducibility
set.seed(2234)
# Simulate data
x.sim = runif(10, -2, 2)
# Transform
x.sim.transformed = logit2(x.sim)
# Untransform
x.sim.untransformed = logit2_inv(x.sim.transformed)
# Compare results
results = cbind(x.sim, x.sim.untransformed)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.