BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
GlenGold
Calcite | Level 5

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.

1 ACCEPTED SOLUTION

Accepted Solutions
SteveDenham
Jade | Level 19

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

2 REPLIES 2
SteveDenham
Jade | Level 19

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

GlenGold
Calcite | Level 5

Thanks Steve-

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

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

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