maximize.g function

maximize.g - Find coordinate of function maximum

maximize.g - Find coordinate of function maximum

Find the x coordinate that maximizes g(x).

maximize.g(fit, covars = NULL)

Arguments

  • fit: An estimated 'dfunc' object produced by dfuncEstim.
  • covars: Covariate values to calculate g(x).

Returns

The value of x that maximizes g(x) in fit.

Examples

## Not run: # Fake data set.seed(22223333) x <- rgamma(100, 10, 1) fit <- dfuncEstim( x, likelihood="Gamma", x.scl="max" ) maximize.g( fit ) # should be near 10. fit$x.scl # same thing ## End(Not run)

See Also

dfuncEstim

  • Maintainer: Trent McDonald
  • License: GNU General Public License
  • Last published: 2025-04-10