mFitSines: Interactive applet for term selection and setting nonlinear...

Description Usage Arguments Details Value Author(s) Examples

View source: R/mFitSines.R

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. A wrapper for mFit, see mFit for more details.

Usage

1
mFitSines(expr, data, ...)

Arguments

expr

A formula object giving the dependent and independent variables to use.

data

A data frame containing the values for the variables identified in expr.

...

Additional arguments to be passed to mFit

Details

A premade wrapper for mFit such that only the constant, x, and the sine and cosine terms are displayed. See mFit for more details.

Value

A function that implements the current state of the parameters and terms selected.

Author(s)

Andrew Rich (andrew.joseph.rich@gmail.com) and Daniel Kaplan (kaplan@macalester.edu)

Examples

1
2
3
4
5
6
	if(require(manipulate)){
		fetchData("hawaii.csv")-> hawaii
		mFitSigmoidal(water~time, data=hawaii)
		hawaii=fetchData("hawaii.csv")
		mFitSines(water~time, data=hawaii)
	}

mosaicManip documentation built on May 31, 2017, 3:59 a.m.