logit2_inv | R Documentation |
This function computes the inverse of a logit transformation of the parameters.
logit2_inv(x)
x |
A |
A vec
containing logit probabilities.
James Joseph Balamuta (JJB)
logit2
# 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.