Description Usage Arguments Details 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 2 | mInfluence(expr, data, groups=NULL,
col.fitted = 'gray30', col.influence='red', ...)
|
expr |
A formula object giving the dependent and independent variables to use. |
data |
A data frame containing the values for the variables identified in |
groups |
A variable or expression to be evaluated in |
col.fitted, col.influence |
colors to use for indicating
influential points and fitted points. Set to |
... |
Additional arguments passed to |
The linear model described by the expr
term is found and fitted values
are plotted against the data. Using the Dep. variable to plot picker the user
may choose which variable to plot on the x axis. The user can add a new point
to the data set by checking the Add new point checkbox. Using the x and y
sliders below it, the user can change the position of the new point. The
sliders' units are standard deviations from the mean. The type of influence
picker is currently nonfunctional.
Andrew Rich (andrew.joseph.rich@gmail.com), Daniel Kaplan (kaplan@macalester.edu), Randall Pruim (rpruim@calvin.edu)
1 2 3 4 5 | if(require(manipulate)) {
data(trees); fetchData(CPS)
mInfluence(Girth~Height, trees)
mInfluence(wage~educ+exper+race+sex+age+sector, data=CPS)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.