mleLBH: MLE model parameter estimator

Description Usage Arguments Value See Also Examples

View source: R/mleLBH.r

Description

Fits by ML method the unit level model of Lyu, Berg and Hofmann. The specified link function is used in the binary part.

Usage

1
mleLBH(data_2p, link = "logit")

Arguments

data_2p

a two-part data object returned by as.2pdata.

link

a specification for the link function used to model the binary part. The accepted link functions are logit, probit, cauchit, log, cloglog and an object of the class link-glm, see the documentation of make.link. Default value is "logit".

Value

The function returns a list with the following objects:

See Also

as.2pdata

Examples

1
2
3
4
  erosion_2p <- as.2pdata(f_pos = RUSLE2~logR+logK+logS,
                          f_zero = ~logR+logS+crop2+crop3,
                          f_area = ~cty, data = erosion)
  fit <- mleLBH(erosion_2p)

XiaodanLyu/saezero documentation built on Sept. 20, 2020, 5:59 a.m.