Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • ASREG Update and error

    Hi all.

    I (this afternoon) update from the original version of asreg to the current version. I had been using the program during the morning successfully. After installing the new version I continue to get the following error (with no change in code).

    ASREGNW(): 3001 expected 9 arguments but received 11
    <istmt>: - function returned error
    r(3001);

    my code is as follows:
    asreg y x1 x2 x3 ind_1-ind_11 year_1-year_25, fit

    ​​​​​​​Thanks in advance!

  • #2
    The author of this user-written package (Attaullah Shah) is a frequent contributor to Statalist and will likely see this topic and comment, but you could also email him directly at the address given in the output of ssc describe asreg to seek his help directly.

    Comment


    • #3
      I just checked the updated version and works fine for me. See the example data below. please update again, and if the problem exists, then please share an example dataset where the problem is encountered.

      To update
      Code:
      ssc install asreg, replace
      Code:
      clear
      input float(y x1 x2 x3) byte(year_1 year_2 year_3 year_4)
      2.4874396   .3488717 .04408112  .2903566 1 0 0 0
      2.7485344   .2668857  .3154627 .01353908 0 1 0 0
       3.223175   .1366463 .10591135  .6170283 0 0 1 0
       2.899586 .028556867 .06671948  .3856087 0 0 0 1
      3.6011076   .8689333  .5924248 .03812535 0 0 0 0
       3.947663   .3508549  .7020757  .8527838 0 0 0 0
      4.4621577  .07110509  .9121656  .5549271 0 0 0 0
      3.3830495  .32336795  .6120089  .4992658 0 0 0 0
      2.7718165   .5551032 .02825442  .7621021 0 0 0 0
       4.079168    .875991  .7517885  .5249195 0 0 0 0
       3.925619  .20470947  .9564982  .4264447 0 0 0 0
        3.38271   .8927587  .4900662  .3979546 0 0 0 0
       2.642539   .5844658  .5663874   .092504 0 0 0 0
        2.89951   .3697791  .4321739  .6377024 0 0 0 0
       4.233513   .8506309  .7812381  .2477553 0 0 0 0
      2.0402896   .3913819  .4410577  .4284832 0 0 0 0
       2.977935  .11966132  .1747132   .553488 0 0 0 0
      4.3716025   .7542434  .9614761 .12982503 0 0 0 0
       3.287136   .6950234  .8956713  .3601841 0 0 0 0
      4.5373707   .6866152  .4247924  .7617097 0 0 0 0
      end
      
      asreg y x1 x2 x3 year_1-year_5, fit
      
           +-------------------------------------------------------------------------------+
           | _Nobs         _R2      _adjR2       _b_x1       _b_x2       _b_x3     _b_cons |
           |-------------------------------------------------------------------------------|
        1. |    20   .65032786   .39602085   .79247545   2.1810334   1.8115107   .92058065 |
           +-------------------------------------------------------------------------------+
      And this is the version information

      Code:
      . which asreg
      c:\ado\plus\a\asreg.ado
      *!Attaullah Shah 3.1.1 26July2018 : newey() fixing
      *! Added noConstant and Robust options
      *! Attaullah Shah 2.1 19Dec2017
      *! Email: [email protected]
      *! Support website: www.OpenDoors.Pk
      *! Added Fama and McBeth regressions and newey SE
      *! multiple functions for se and fitted values
      *! ssc version
      Last edited by Attaullah Shah; 29 Aug 2018, 03:14.
      Regards
      --------------------------------------------------
      Attaullah Shah, PhD.
      Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
      FinTechProfessor.com
      https://asdocx.com
      Check out my asdoc program, which sends outputs to MS Word.
      For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

      Comment

      Working...
      X