[R-sig-dyn-mod] question about the limit of conversion rate

Thomas Petzoldt Thomas.Petzoldt at tu-dresden.de
Tue Jun 25 19:21:51 CEST 2013


Hi,

your idea for a smoothed impulse function seems quite close to a good 
solution, what about:

x <- seq(-20, 20, 1e-3)
steep <- 20
plot(x, (tanh(steep * (x %% 10 - 8))
        - tanh(steep * (x %% 10 - 2)))/2 + 1,
      type = "l", col = "red")



thpe



More information about the R-sig-dynamic-models mailing list