Skip to contents

Sample from the grid

Usage

sample_grid(grid, n_samples = 2000)

Arguments

grid

A list of fitted model objects from run_grid.

n_samples

Integer specifying the number of samples to draw from the grid. Default is 2000.

Value

A list with two elements:

grid_cells

Integer vector of length n_samples indicating which grid cells were sampled.

grid_freq

A tibble summarizing the frequency of each grid cell in the sample, including columns for Cell, nll, m0, m10, h, psi, and Freq.