R: Poisson regression

fitPoisson {bigstep} | R Documentation

## Poisson regression

### Description

Fit the Poisson regression model and calculate the log-likelihood.

### Usage

    fitPoisson(X, y)

### Arguments

`X` | a numeric matrix.
`y` | a numeric vector.

### Value

A number, the log-likelihood.

### Examples

    set.seed(1)
    n <- 100
    M <- 10
    X <- matrix(rnorm(M*n), ncol=M)
    mu <- X[, 2] - X[, 3] + X[, 6] - X[, 10]
    y <- rpois(n, exp(mu))
    fitPoisson(X, y)

[Package bigstep version 0.7.4 Index]