Learn R Programming

anchoredDistr (version 1.0.3)

testConvergence: Test (visually) the convergence of a MADproject object.

Description

testConvergence returns a plot to help the user visualize if there are enough realizations in the project for converged likelihood values

Usage

testConvergence(proj, dsubset, samples = 1:proj@numSamples, NR = 10,
  NS = 7)

# S4 method for MADproject,numeric testConvergence(proj, dsubset, samples = 1:proj@numSamples, NR = 10, NS = 7)

# S4 method for MADproject,ANY testConvergence(proj, samples, NR, NS)

Arguments

proj

The MADproject object to be tested.

dsubset

The subset of inversion data to use for the likelihood calculations.

samples

A vector of sample IDs to sample from to calculate likelihood values (defaults to all available in the MADproject object)

NR

The number of different realization totals for which to calculate likelihood values (defaults to 10)

NS

The number of randomly selected samples to test (defaults to 7) out of samples

Methods (by class)

  • proj = MADproject,dsubset = numeric: Tests the convergence using a subset dsubset of inversion data zid

  • proj = MADproject,dsubset = ANY: Tests the convergence using all inversion data zid

Examples

Run this code

data(pumping)
testConvergence(pumping, dsubset=1:3)  #Inversion data as time steps 1-3


Run the code above in your browser using DataLab