Programming the statistical procedures from SAS

Proc Autoreg with hetero statement, convergence error

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 6
Accepted Solution

Proc Autoreg with hetero statement, convergence error

I am getting this error with one of my data sets, it is much larger than the others sets.  I was told that it may work with more iterations but cannot find the /option for doing so.

Code:

proc autoreg Data= Temp_1; model AdjWPricePerLb = prop qsize StoreBrand

RegularType Boneless Dressed Smoked RemainingType

Fillet Piece Whole Sliced Nugget Tail Portion RemainingForm RegularForm

Salmon Tilapia Catfish  Cod Flounder Pollock Tuna

  Crawfish MahiMahi Swordfish Haddock OceanPerch Gefilte

  OrangeRoughy Halibut Perch Sole RemainingProduct NovaSalmon Smelt Grouper

  Swai Trout Snapper SeaBass Herring Croaker RedSnapper Whitefish

  Fish SeaTrout  SalmonGefilte RainbowTrout Rockfish Basa  Mackerel

  ChannelCatfish Hoki Lutefisk KingSalmon  Shark Barramundi Porgy Walleye

  Hake LoxSalmon 

CMAS LENT OS; hetero qsize; run;

I get this error in the output, right after the OLS estimates:

ERROR: Convergence not attained in 50 iterations. Interpret the

                estimates with care.


Accepted Solutions
Solution
‎01-03-2012 12:36 PM
Respected Advisor
Posts: 2,655

Proc Autoreg with hetero statement, convergence error

You need an NLOPTIONS statement.

Something like NLOPTIONS MAXITER=1000; should give you sufficient iterative ability to fit this. 

Also, if you are running under SAS v 9.3, PROC AUTOREG has an experimental CLASS statement, which might make sense to try and might make the interpretation a little easier, given the number of fish types you are looking at

Steve Denham

View solution in original post


All Replies
Solution
‎01-03-2012 12:36 PM
Respected Advisor
Posts: 2,655

Proc Autoreg with hetero statement, convergence error

You need an NLOPTIONS statement.

Something like NLOPTIONS MAXITER=1000; should give you sufficient iterative ability to fit this. 

Also, if you are running under SAS v 9.3, PROC AUTOREG has an experimental CLASS statement, which might make sense to try and might make the interpretation a little easier, given the number of fish types you are looking at

Steve Denham

Occasional Contributor
Posts: 6

Proc Autoreg with hetero statement, convergence error

Thanks Steve-

/MAXITER = 1000; at the end of the model statement did it.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 380 views
  • 0 likes
  • 2 in conversation