Tuesday, 15 July 2014

r - How to deal "Error in model.frame.default(formula = y ~x ) variable lengths differ (found for)" in IRLS function -


I am trying to recycle the least square method to estimate the coefficient of the equation:

y = A0 + a1 * cos (2 * pi / 365 * x) + b1 * sin (2 * pi / 365 * x) + c1 * x

When I fit this equation I use IRLS to get an error:

  x  

How can I handle this problem? What is the other method of IRLS to estimate coefficient?


No comments:

Post a Comment