Description Usage Arguments Details Value Author(s) Examples
Displays data and a menu of modeling functions. Finds a linear combination of the selected modeling functions, with the user setting nonlinear parameters manually.
1 |
expr |
A formula object giving the dependent and independent variables to use. |
data |
A data frame containing the values for the variables identified in |
instructor |
A logical vector consisting of |
... |
Extra arguments to be passed to the functions described in |
This function attempts to fit a linear combination of the selected terms to the data plotted. Terms are selected by clicking the corresponding checkbox. There are sliders only for nonlinear parameters. Linear coefficients are found automatically. Only a function of one variable is supported at present. By checking each checkbox, the term is added to the fitted function, and the linear fit of the selected terms is updated. The instructor argument allows an instructor to hide certain terms such that a lesson may be geared towards specific subjects without distraction. mFitSines
, mFitSigmoidal
, and mFitPoly
are premade wrappers that select only the constant, x, and sines and cosines terms, the pnorm terms, and the polynomial terms, respectively.
A function that implements the current state of the parameters and terms selected.
Andrew Rich (andrew.joseph.rich@gmail.com) and Daniel Kaplan (kaplan@macalester.edu)
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.