tests/ex3.R

suppressMessages(library(cobs))

options(digits = 6)
## pdf("ex3.pdf")

data(women) # 15 obs.
attach(women)

## Interpolation! very easy problem,   BUT :
try( ## gives  "ifl = 5" !!!!!
cobw <- cobs(weight, height, knots = weight, nknots = length(weight))
)

cat('Time elapsed: ', proc.time(),'\n') # for ``statistical reasons''

Try the cobs package in your browser

Any scripts or data that you put into this service are public.

cobs documentation built on May 30, 2022, 5:07 p.m.