ExponentialRate: Compute the Rate of a Non-Homogeneous Exponential Process

View source: R/generateNonHomogeneousExp.R

ExponentialRateR Documentation

Compute the Rate of a Non-Homogeneous Exponential Process

Description

This function calculates the rate of a non-homogeneous exponential process given a set of covariates and corresponding parameters.

Usage

ExponentialRate(covariates, parameters)

Arguments

covariates

A numeric vector or matrix of covariates.

parameters

A numeric vector of parameters corresponding to the covariates, where the first element is the bias term.

Value

The computed rate value.

Examples

covariates_example <- matrix(c(1, 2, 3, 4), ncol = 2)
parameters_example <- c(0.5, 1, -0.5)
rate <- ExponentialRate(covariates_example, parameters_example)
print(rate)

franciscorichter/emphasis documentation built on Feb. 19, 2024, 7:36 p.m.