mu.mnl: Multinomial logit mean calculation with restrictions and...

View source: R/mu.mnl.R

mu.mnlR Documentation

Multinomial logit mean calculation with restrictions and cutoff

Description

Multinomial logit mean calculation with restrictions and cutoff

Usage

mu.mnl(x, mu, areas, restrictions = NULL, cutoff = 0, area.cutoff = FALSE)

Arguments

x

Bias correction parameters

mu

Means of each class

areas

Vector of areas

restrictions

Optional restrictions. Binary, if 1, the log-odds are set to zero

cutoff

Optional, defaults to zero. If set, all log-odds below cutoff are set to zero

area.cutoff

Boolean, defaults to FALSE. If TRUE, cutoff triggers based on area instead

Value

Returns the vector of log-odds times the areas


tkrisztin/downscalr documentation built on June 2, 2025, 1:16 a.m.