# otlog: One-truncated Logarithmic Distribution In VGAMdata: Data Supporting the 'VGAM' Package

 otlog R Documentation

## One-truncated Logarithmic Distribution

### Description

Estimating the (single) parameter of the 1-truncated logarithmic distribution.

### Usage

``````otlog(lshape = "logitlink", gshape = ppoints(8), zero = NULL)
``````

### Arguments

 `lshape, gshape, zero` Same as `logff`. See `CommonVGAMffArguments` for information.

### Details

The 1-truncated logarithmic distribution is a logarithmic distribution but with the probability of a one being zero. The other probabilities are scaled to add to unity. Some more details can be found at `logff`. Multiple responses are permitted.

### Value

An object of class `"vglmff"` (see `vglmff-class`). The object is used by modelling functions such as `vglm`, and `vgam`.

### Author(s)

T. W. Yee

`Gaitdlog`, `Otlog`, `logff`, `oalog`, `oilog`, `simulate.vlm`.

### Examples

``````## Not run:
odata <- data.frame(y1 = rotlog(1000, shape = logitlink(1/3, inv = TRUE)))
ofit <- vglm(y1 ~ 1, otlog, data = odata, trace = TRUE, crit = "c")
coef(ofit, matrix = TRUE)
Coef(ofit)
with(odata,
hist(y1, shape = TRUE, breaks = seq(0.5, max(y1) + 0.5, by = 1),
border = "blue"))
x <- seq(1, with(odata, max(y1)), by = 1)
with(odata, lines(x, dotlog(x, Coef(ofit)), col = "orange",
type = "h", lwd = 2))
## End(Not run)
``````

VGAMdata documentation built on Sept. 18, 2023, 9:08 a.m.