getFunctionEnvelopePara: Function to return function envelope for parabola

Description Usage Arguments Value Note Author(s) Examples

View source: R/getFunctionEnvelopePara.R

Description

Use boostrap to get bands of possible fits to data using quadratic

Usage

1

Arguments

data

data frame with columns x and y

Value

data frame with x, lwr and upr

Note

February 12 2013

Author(s)

Jono Tuke, Matthew Roughan

Examples

1
2
3
4
5
6
7
x <- runif(100,0,10)
y <- x^2 + 2*x + 3 + rnorm(100,sd=20)
df <- data.frame(x=x,y=y)
plot(y~x,data=df,pch=16,cex=0.5)
bounds <- getFunctionEnvelopePara(data=df,x=seq(0,10,l=100))
lines(bounds$x,bounds$lwr)
lines(bounds$x,bounds$upr)

catenary documentation built on May 4, 2018, 9:04 a.m.