Learn R Programming

topolow (version 1.0.0)

get_grid: Create Grid Around Maximum Likelihood Estimate

Description

Generates a sequence of values centered on the maximum likelihood estimate (MLE) of a parameter, extending by specified factors in each direction.

Usage

get_grid(samples, param, num_points, start_factor, end_factor)

Value

Numeric vector of grid points

Arguments

samples

Data frame of MCMC samples with NLL column

param

Character name of parameter column

num_points

Integer number of points in grid

start_factor

Numeric factor for lower bound relative to MLE

end_factor

Numeric factor for upper bound relative to MLE