calculateParameters: Calculate Parameters for the Generalized Kumaraswamy...

View source: R/RcppExports.R

calculateParametersR Documentation

Calculate Parameters for the Generalized Kumaraswamy Distribution

Description

Computes the parameters (alpha, beta, gamma, delta, lambda) for each observation based on design matrices and regression coefficients, applying a positive link function as specified by link types and scale factors.

Usage

calculateParameters(
  X1,
  X2,
  X3,
  X4,
  X5,
  beta1,
  beta2,
  beta3,
  beta4,
  beta5,
  link_types,
  scale_factors,
  family = "gkw"
)

Arguments

X1

NumericMatrix design matrix for alpha.

X2

NumericMatrix design matrix for beta.

X3

NumericMatrix design matrix for gamma.

X4

NumericMatrix design matrix for delta.

X5

NumericMatrix design matrix for lambda.

beta1

NumericVector regression coefficients for X1.

beta2

NumericVector regression coefficients for X2.

beta3

NumericVector regression coefficients for X3.

beta4

NumericVector regression coefficients for X4.

beta5

NumericVector regression coefficients for X5.

link_types

IntegerVector containing the link function type for each parameter.

scale_factors

NumericVector with scale factors for each parameter.

family

String specifying the distribution family (default: "gkw").

Value

NumericMatrix with n rows and 5 columns corresponding to the calculated parameters.


gkwreg documentation built on April 16, 2025, 1:10 a.m.