restrict_data: Function to restrict data in the size to accelerate the...

View source: R/utils.R

restrict_dataR Documentation

Function to restrict data in the size to accelerate the calculations

Description

restrict_data() is based on rejection ABC method to restrict original dataset

Usage

restrict_data(par.sim, stat.sim, stat.obs, size = 300)

Arguments

par.sim

Data frame of parameters

stat.sim

Data frame of outputs of simulations

stat.obs

Data frame of observation point

size

Integer number of points to leave from original dataset

Value

restrict_data() returns the list of:
par.sim - restricted parameters which are close to observation point
stat.sim - restricted stat.sim which are close to observation point

Examples

MaxWiK::MaxWiK_templates(dir = tempdir()) # See the templates and vignettes for usage.

MaxWiK documentation built on April 3, 2025, 8:47 p.m.