# BEGIN CODE my.kernel <- function(Yt){ for (i in 1:length(Yt)) { Yt[i] <- ifelse(abs(Yt[i]) <= 1, (35/32)*(1 - Yt[i]^2)^3, 0)} Yt}