Learn R Programming

SRTsim (version 0.99.7)

fit_pos_optim: fitting data with poisson through optim function

Description

fitting data with poisson through optim function

Usage

fit_pos_optim(x, maxiter = 500)

Value

Returns a vector with mean paramter lambda, loglikelihood value llk, convergence

Arguments

x

A vector of count values to be fitted

maxiter

number of iteration