F.maximize.g | R Documentation |
Find the x coordinate that maximizes g(x).
F.maximize.g(fit, covars = NULL)
fit |
An estimated 'dfunc' object produced by |
covars |
Covariate values to calculate maximum for. |
The value of x that maximizes g(x) in fit
.
dfuncEstim
## Not run:
# Fake data
set.seed(22223333)
x <- rgamma(100, 10, 1)
fit <- dfuncEstim( x, likelihood="Gamma", x.scl="max" )
F.maximize.g( fit ) # should be near 10.
fit$x.scl # same thing
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.