indid_predict: Probabilities of change of an InDiD model

View source: R/dfr_indid.R

indid_predictR Documentation

Probabilities of change of an InDiD model

Description

Runs an indid() model on sequences and returns, for every sequence and time step, the probability that a change has happened.

Usage

indid_predict(model, x)

Arguments

model

An indid object.

x

Sequences, in the formats accepted by indid().

Value

A matrix ⁠[sequence, time]⁠ of probabilities.

Examples

set.seed(1)
x <- matrix(stats::rnorm(20 * 16, 1), 20)
labels <- matrix(0, 20, 16)
model <- indid(x, labels, T = 4, epochs = 2, seed = 1)
dim(indid_predict(model, x))

heimdall documentation built on Dec. 2, 2026, 5:08 p.m.