Learn R Programming

Pomic (version 0.9.1)

pomic.corrected: Pomic corrected calculation for numerical patterns

Description

This function calculate the POMIC value of simulations results compared to a vector taken as a field pattern.

Usage

pomic.corrected(object1, object2, eps=10^-30, nrange=1000)

Arguments

object1
Numerical, vector of the field pattern
object2
Numerical, vector of simulations results
eps
Numerical, value to use when the likelihood = 0 for mathematical stability
nrange
Numerical, number of interval to consider for the probability density function creation and integration

Value

  • Return a value corresponding to the pomic score of model results to reproduce the pattern

Details

This function returns the POMIC value + correction of the constant in KL equation corresponding to the entropy of the field pattern. The purpose of this function is to be able to sum up pomic.corrected values in cases of multiple "patterns" situations to obtain an overall score (but not for parameter averaging or evidence calculation purpose).

See Also

pomic.simple pomic

Examples

Run this code
pomic.corrected(rnorm(100,10,5),rnorm(100*5,10.5,6),eps=10^-20)

Run the code above in your browser using DataLab