Smoothing_Analysis: Interactive smoothing with two metric variables

Description Usage Arguments Details Author(s) Examples

Description

Takes any metric data and plots a two-dimensional scatterplot. You can interactively build a polynomial or smoothing spline fit and plot those fits with a confidence band.

Usage

1
Smoothing_Analysis(data, n = 10, height = 500)

Arguments

data

A data.frame object that is to be analyzed (only metric variables are shown)

n

A numeric value indicating the limit from what number of different values a variable is seen as categorical variable, all variables that have more than n different values are being treated as metric values

height

A numeric value indicating the height of the shown scatterplot

Details

On the sidebar you can chose two metric variables from the data set to be plotted in a scatterplot. If you wish you can also transform any of the used variables (options are: identity, log, exp, sin, cos). On the right side you see the R^2 values of the current model. To fit a polynomial model chose the 'Polynomial'-option in the type of regression.With a numeric input you can change the degree of the fit. The other option is to fit "Polynomial-Splines", one can do that by selecting the according type of regression. At first you can set the amount of knots and decide weather you want to penalize the fit. You can also use different kind of smoothing basis you want to use. There are three different possible smoothing bases: thing plate regression splines, cubic regression splinesand p-splines. If you want to penalize the fit check the box 'Penalize', you can set the numeric value lambda, indicating the importance of the penalty term. In case you are fitting a p-Spline Basis without a penalty the model is equivalent to b-splines, so you can also set the order of the fit. The last thing you are also free to change is the family and link-Function used in the the model. For further reading on these options see the documentation in the stats-Package (family and make.link).

Author(s)

Cornelius Fritz <cornelius.fritz@campus.lmu.de>

Examples

1
2
3
4

corneliusfritz/intervisu documentation built on May 13, 2019, 10:51 p.m.