get_eval_at: Get a list of x-coordinates to evaluate fit$simulate at

View source: R/plot.R

get_eval_atR Documentation

Get a list of x-coordinates to evaluate fit$simulate at

Description

Solves two problems: if setting the number of points too high, the function becomes slow. If setting it too low, the posterior at large intercept- changes at change points look discrete, because they are evaluated at very few x in that interval.

Usage

get_eval_at(fit, facet_by)

Arguments

fit

An mcpfit object.

facet_by

String. Name of a varying group.

Details

This function makes a vector of x-values with large spacing in general, but finer resolution at change points.

Value

A vector of x-values to evaluate at.


mcp documentation built on March 18, 2022, 6:41 p.m.