estim_INAR: Estimate INAR parameters.

Description Usage Arguments Value

View source: R/bootstrap.R

Description

Estimate INAR parameters.

Usage

1
2
3
4
5
6
7
estim_INAR(
  Y,
  theta,
  group = rep("default", nrow(Y)),
  time = seq_len(group),
  row_ids = rownames(Y)
)

Arguments

Y

A n x d matrix containing token counts for n different tokens and d different documents.

theta

A n x d matrix. The logs of the Poisson parameters.

group

A character vector of length n for grouping.

time

A numeric vector of length n to order elements by time.

row_ids

A index vector of length n mapping the ordering of group and time to the ordering in the rows of theta.

Value

A named list with INAR parameters for each group.


chroetz/poisrrr documentation built on Dec. 19, 2021, 4:05 p.m.