View source: R/generateNonHomogeneousExp.R
ExponentialRate | R Documentation |
This function calculates the rate of a non-homogeneous exponential process given a set of covariates and corresponding parameters.
ExponentialRate(covariates, parameters)
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. |
The computed rate value.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.