title: Example of Time Series Prediction using Neural Networks in R
body: <p>Anyone's got a quick short educational example how to use Neural Networks (<strong>nnet in R</strong>) for the purpose of prediction?
  Here is an example, <strong>in R</strong>,  of a time series</p>
  
  <pre><code>T = seq(0,20,length=200)
  Y = 1 + 3*cos(4*T+2) +.2*T^2 + rnorm(200)
  plot(T,Y,type="l")
  </code></pre>
  
  <p>Many thanks</p>
  
  <p>David</p>