asdocx: Export from Stata to Word, Excel, LaTeX & HTML Forums asdocx Forum asdocx Control decimal points in the reg1 template | regression for epidemiology

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Susan Xu
    Participant
    Post count: 2

    Dear Dr. Shah,

    I have installed the license. Today I want to use asdocx and I want to get the estimated HR and 95% CI from a Cox proportional hazard model. First, it gives me the same result as use asdoc, which included Coef, St Err, t-value, p-value, 95% CI. Then I followed an example you sent to me at the first email by using template.

    stset year, fail(dead)
    
    asdocx stcox AGE i.MED_INC_QUAR_121 i.insurance  i.CDCC_TOTAL_BEST1 i.grade1  i.histology_type2 ///
     i.clinical_stage1 i.clinical_N_stage i.clinical_met i.TUMOR_SIZE_med i.surgery i.chemo, ///
     replace label template(reg1)

    When I run it, it has an error message. option dec() not allowed. Do you know what’s wrong with it?

    Thank you!

    Susan

    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    I have modified the reg1 template. It now accepts the dec() option. See the following example:

    Table: Regression Results - price
      
    ----+----------------------------------------------------------------------
      1 |Variable                              OR [95% CI]           P-value 
    ----+----------------------------------------------------------------------
      2 |Mileage (mpg)       -289.346 [-424.410, -154.283]             0.000 
      3 |Repair Record 1978    670.897 [132.141, 1209.653]             0.015 
      4 |Headroom (in.)       -300.029 [-877.106, 277.048]             0.303 
      5 |Constant            10921.330 [6768.917, 15073.743]           0.000 
      6 |Observations                                   69                   
    ---------------------------------------------------------------------------
    
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.