lambda_start {MixedPoisson}R Documentation

Estimation of starting lambda in Expectation-Maximization (EM) algorithm

Description

The function fits the GLM Poisson without regressors.

Usage

lambda_start(variable, X)

Arguments

variable

the vector of numbers

X

model matrix of the form X=model.matrix(~regressor). In the model without regressor the X sould be defined as X=as.matrix(rep(1, length(variable)))

Details

It fits the GLM Poisson, where variable \sim 1. The results are taken as the starting value of EM algorithm.

Value

lambda

\hat \lambda=\hat \beta X

beta

regressor parameters

glm

output of \texttt{glm}

Author(s)

Alicja Wolny–Dominiak, Michal Trzesiok

Examples

set.seed(1234)
variable=rpois(50,4)
X=as.matrix(rep(1, length(variable)))
t=pseudo_values(variable, mixing=c("invGauss"), lambda=4, delta=1, n=100)
lambda_m_step(variable, X, offset=t$pseudo_values)

[Package MixedPoisson version 2.0 Index]