fitrem: Fit a zero-truncated recurrent events model

Description Usage Arguments Details Value

Description

fitrem fits a zero-truncated recurrent events model on the data provided and calculates the point and interval estimate of the population size

Usage

1
fitrem(data, bstart, ...)

Arguments

data

An array of at least three dimensions

bstart

A vector of starting values

...

Further arguments to be passed from or to other methods

Details

This is a specialised function, as it requires the data to be in a three-dimensional format (persons x time x variables). The default optimization procedure is a Newton-Raphson method, while numerical optimization via optim is also possible

Value

A coefficient matrix, point and interval estimate of the population size, loglikelihood and number of iterations


thomashusken/trem documentation built on May 31, 2019, 10:47 a.m.