cps <- fetchData("CPS.csv")
f <- smoother(wage~age,span=.9, data=cps)
f(40)
df <- D(f(age)~age)
df(40)
g <- linearModel(log(wage)~age+educ+1,data=cps)
g(age=40,educ=12)
dgdeduc <- D(g(age=age,educ=educ)~educ)
dgdeduc(age=40,educ=12)
x<-1:5; y=c(1,2,4,8,8.2)
f1 <- spliner(y~x)
f1(x=8:10)
# f2 <- spliner(x~y, monotonic=TRUE)
# f2(x=8:10)
f3 <- connector(x~y)
# f2(x=8:10)
Run the code above in your browser using DataLab