fit_force_clamp: Fit bell equation with mle and bootstrap CI

View source: R/fct_fit-bell.R

fit_force_clampR Documentation

Fit bell equation with mle and bootstrap CI

Description

Fit bell equation with mle and bootstrap CI

Usage

fit_force_clamp(
  measured_events,
  tmin = NULL,
  plot_colors = NULL,
  basesize = 12,
  textsize = 10,
  is_shiny = FALSE
)

Arguments

tmin

numeric specifying minimum attachment time (dead time)

plot_colors

a character vector specyfing plot colors

basesize

numeric specifying base size for plot

textsize

numeric specifying text size for plot

force

numeric vector containing the x-axis force measurements. Must be same length as time and id.

time

numeric vector containing the y-axis time measurements. Must be same lenfth as force and id.

id

NULL (default), or a character vector denoting which group the data is in. Must be same length as force and time.

Value

a list containing "plot" and "boot_data". "plot" - is a ggplot2 object. "boot_data" - is a nested data frame containing information about the fits and bootstrapping.


brentscott93/lasertrapr documentation built on March 26, 2024, 4:26 p.m.