F.maximize.g: Find the coordinate of the maximum of a distance function

Description Usage Arguments Value Author(s) See Also Examples

Description

Find the x coordinate that maximizes g(x).

Usage

1
F.maximize.g(fit, covars = NULL)

Arguments

fit

An estimated 'dfunc' object produced by dfuncEstim.

covars

Covariate values to calculate maximum for.

Value

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

Author(s)

Trent McDonald, WEST Inc., tmcdonald@west-inc.com

See Also

dfuncEstim

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

Rdistance documentation built on May 2, 2019, 3:49 a.m.