fmx2dbl function

Reparameterization of fmx Object

Reparameterization of fmx Object

To convert the parameters of fmx object into unrestricted parameters.

fmx2dbl( x, distname = x@distname, pars = x@pars, K = dim(pars)[1L], w = x@w, ... )

Arguments

  • x: fmx object
  • distname: character scalar, default x@distname
  • pars: numeric matrix , default x@pars
  • K: integer scalar, default value from x
  • w: numeric vector , default x@w
  • ...: additional parameters, not currently used

Returns

Function fmx2dbl() returns a numeric vector .

Details

For the first parameter

  • A1A1A_1 \rightarrow A_1
  • A2A1+exp(log(d1))A_2 \rightarrow A_1 + \exp(\log(d_1))
  • AkA1+exp(log(d1))++exp(log(dk1))A_k \rightarrow A_1 + \exp(\log(d_1)) + \cdots + \exp(\log(d_{k-1}))

For mixing proportions to multinomial logits.

For 'norm': sd -> log(sd)

for 'GH': B -> log(B), h -> log(h)

See Also

dbl2fmx()

  • Maintainer: Tingting Zhan
  • License: GPL-2
  • Last published: 2025-03-15

Useful links