Description Usage Arguments Value Author(s) See Also Examples
This function computes the pseudo inverse of a logit transformation of the parameters in order to constrain them to a positive domain
1 |
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(1222)
# Simulate data
x.sim = runif(10, -1, 1)
# Transform
x.sim.transformed = pseudo_logit(x.sim)
# Untransform
x.sim.untransformed = pseudo_logit_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.