Last data update: 2014.03.03

R: Normalizing constant for the multiplicative multinomial
NormCR Documentation

Normalizing constant for the multiplicative multinomial

Description

Calculates the normalizing constant for the multiplicative multinomial using direct numerical summation

Usage

NormC(Y, paras, log = FALSE)

Arguments

Y

Total number of observations

paras

Object of class paras

log

Boolean, with default FALSE meaning to return the value, and TRUE meaning to return the natural logarithm

Author(s)

Robin K. S. Hankin

Examples

jj <- paras(3)
theta(jj) <- 2
NormC(5,jj)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(MM)
Loading required package: magic
Loading required package: abind
Loading required package: partitions
Loading required package: emulator
Loading required package: mvtnorm
Loading required package: Oarray
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MM/NormC.Rd_%03d_medium.png", width=480, height=480)
> ### Name: NormC
> ### Title: Normalizing constant for the multiplicative multinomial
> ### Aliases: NormC
> 
> ### ** Examples
> 
> jj <- paras(3)
> theta(jj) <- 2
> NormC(5,jj)
[1] 144.2099
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>