tripleFit: Fit three models at once

Description Usage Arguments Details See Also Examples

Description

Fit a linear, exponential, and logistic growth model to two variables and plot the model.

Usage

1
tripleFit(simpleformula, data, xlab = NULL, ylab = NULL)

Arguments

simpleformula

a designation for the model formula in y ~ x notation. Must be in formula notation–see details.

data

a data frame in which to evaluate formulas.

xlab

optional. Text for x-axis title label for produced graph.

ylab

optional. Text for y-axis title label for produced graph.

Details

This function is one of a group of functions that take a specific input in the form of y ~ x, following (in-part) the mosaic package formula notation. However, only simple formulas are allowed with no grouping parameter, nor multiple predictor variables.

See Also

linFit expFit logisticFit

Examples

1
2
3
4
data(wolf)
wolf <- wolf %>%
  mutate(Time = Year - min(Year))
tripleFit(Number ~ Time, data=wolf)

MichaelJMahometa/OnRampsR2 documentation built on Feb. 12, 2020, 12:32 a.m.