fitApp: Interactive applet for term selection and nonlinear...

Description Usage Details Author(s) Examples

Description

Displays data and a menu of modeling functions. Finds a linear combination of the selected modeling functions, with the user setting nonlinear parameters manually.

Usage

1
fitApp(display = c("normal", "showcase"))

Details

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.

Author(s)

Andrew Rich (andrew.joseph.rich@gmail.com) , Daniel Kaplan (kaplan@macalester.edu) , Mengdie Wang(mwang3@macalester.edu) and Jingjing Yang(jyang1@macalester.edu)

Examples

1
2
fitApp() #if you do not want to display the code
fitApp(display = "showcase") #if you want to display the code

farfallawang/mosaicApps documentation built on May 16, 2019, 10:09 a.m.