GateLogit: Computes the logit regression weights in log.

Description Usage Arguments Value

View source: R/Gating.R

Description

Computes the logit regression weights in log.

Usage

1
GateLogit(x, alpha)

Arguments

x

An N * P covariate matrix, where N is sample size. The first column MUST be 1.

alpha

A g * P matrix. Logit regression coefficients.

Value

The log of tcrossprod(x,alpha) with dim N * g, with each row normalized by rowLogSumExps


UofTActuarial/LRMoE documentation built on Feb. 18, 2022, 1:36 a.m.