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

F.maximize.gR Documentation

Find the coordinate of the maximum of a distance function

Description

Find the x coordinate that maximizes g(x).

Usage

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.

See Also

dfuncEstim

Examples

## 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)


tmcd82070/Rdistance documentation built on April 10, 2024, 10:20 p.m.