Displaying 1 result from an estimated 1 matches for "scove".
Did you mean:
scope
2008 Jun 05
1
Smooth Spline
...matplot(n,cbind(coves,es,t),type ='l', col=c("red","blue","black"),xlab='n',ylab='power')
I want power curves to be smooth (avoid sawtooth curve), I try the follows,
##Spline
library(modreg)
st<- smooth.spline(t)
ses<- smooth.spline(es)
scoves<- smooth.spline(coves)
plot(scoves,col='red', type='l')
lines(ses, col='blue',type='l')
lines(st,col='black',type='l')
The shapes are what I want, but I want x-axis consistent to the correspond to n. Does anyone know the solution?
Thanks,
Kat...