plot_2d_red_like_closed: plot_2d_red_like_closed

Description Usage Arguments Value Examples

View source: R/plotting_functions.R

Description

Plot 2D closed likelihood given a range for pdet and for lambda.

Usage

1
2
plot_2d_red_like_closed(nit, startPdet, endPdet, stepsizePdet, startLambda,
  endLambda, stepsizeLambda, red, K)

Arguments

nit

R by T matrix of reduced counts with R sites/rows and T sampling occassions/columns.

startPdet

Starting value for pdet.

endPdet

Ending value for pdet.

stepsizePdet

Spacing between values of pdet

startLambda

Starting value for lambda.

endLambda

Ending value for lambda.

stepsizeLambda

Spacing between values of lambda

red

Reduction factor r.

K

Upper bound on summations (reduced counts upper bound).

Value

Returns a matrix of likelihoods where rows represent pdet, and columns represent lambda.

Examples

1
2
3
set.seed(12345)
Y <- gen_Nmix_closed(15,15,150,0.5)
L <- plot_2d_red_like_closed(reduction(Y$nit,10), 0.05, 1.0, 0.05, 10, 250, 10, 10, reduction(400,10))

mrparker909/redNMix documentation built on April 4, 2020, 12:24 a.m.