# NOT RUN {
GNG_fit(stocks$SAP)
GNG_fit(stocks$MSFT)
autoplot(GNG_fit(stocks$ADS))
GNG_fit(stocks$GSPC, start = c(break1=-0.0075, break2=0.0075, mean=0,
sd=0.0115, shape1=0.15, shape2=0.15), control = list(maxit = 20000))
GNG_fit(stocks$DJI, start = c(break1=-0.0055, break2=0.0055, mean=-0.001,
sd=0.0055,shape1=0.15,shape2=0.15), method = "CG",control = list(maxit = 1000))
# }
Run the code above in your browser using DataLab