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 |
Details
It fits the GLM Poisson, where variable \sim 1
.
The results are taken as the starting value of EM algorithm.
Value
lambda |
|
beta |
regressor parameters |
glm |
output of |
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]