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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 1769 views
  • 0 likes
  • 2 in conversation