Announcement

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

  • Risk models and asdoc

    Hi all,
    does anyone know if asdoc is setup to use with any relative risk models? In particular, I am trying to run an exponential hazard model using streg and when I include the "nest" option for asdoc I get the following error:

    "depvar may not be a factor variable
    r(198);"

    Thanks so much.

  • #2
    Hello Moshe Barach
    welcome to Statalist. Can you please post your code. Here is an example that does not generate the said error.

    Code:
    webuse kva
    stset failtime
    streg load bearings, distribution(weibull)
    asdoc streg load bearings, distribution(weibull) replace nest
    Also try the beta version of asdoc from my site. The new version of asdoc can be installed from my site. Copy and paste the following line in Stata and press enter.
    Code:
    net install asdoc, from(http://fintechprofessor.com) replace
    Please note that the above line has to be copied in full. After installation of the new version, then restart Stata.

    asdocx is now available

    A more powerful and flexible version of asdoc is now available. I call it asdocx. You may like to check the details here

    https://fintechprofessor.com/asdocx


    Please do remember to cite asdoc. To cite:

    In-text citation
    Tables were created using asdoc, a Stata program written by Shah (2018).

    Bibliography
    Shah, A. (2018). ASDOC: Stata module to create high-quality tables in MS Word from Stata output. Statistical Software Components S458466, Boston College Department of Economics.

    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


    • #3
      Hi Attaullah,
      Thanks for the response. Your example works for me, which made me realize that the issue is actually when the dependant var is a factor variable. Please see the following example:

      Code:
      clear all
      webuse kva
      xtile load_bin=load,n(4)
      stset failtime
      streg i.load_bin bearings, distribution(weibull)
      asdoc streg i.load_bin bearings, distribution(weibull) replace nest
      I think this will generate an error.

      Best,
      Moshe

      Comment

      Working...
      X