Forum Replies Created

Viewing 15 posts - 1 through 15 (of 41 total)
  • Author
    Posts
  • Kevin Blaine
    Participant
    Post count: 51
    in reply to: Reg2 Template? #18497

    Hi Dr. Shah — I’m loving this template. I wonder, how would I change the decimal placement for ORs, but leave the P-Value decimal place?

    For example, I want to report out 2 decimal places for ORs (e.g. 2.06), but leave 3 decimal places for the P-Value (e.g. 0.003)

    Thanks!

    Kevin Blaine
    Participant
    Post count: 51
    in reply to: Reg2 Template? #18465

    Thanks Dr. Shah. I understand now. I was thinking it the opposite — that there was one dependent, with multiple independent. So in your example on the help page, each of those ORs represents the odds of the corresponding variable occurring when Robotic==1?

    In other words, the result of this Reg2 Template syntax:

    asdocx logistic i.Robotic death cdarrest1, vce(cl new_ID) label template(reg2) replace

    Is equivalent to the stacked result of this Stata syntax:

    logistic death i.Robotic
    logistic cdarrest1 i.Robotic

    Am I understanding correctly?

    Thanks!

    Kevin Blaine
    Participant
    Post count: 51
    in reply to: asdocx + Histogram #18464

    Thank you!!

    Kevin Blaine
    Participant
    Post count: 51
    in reply to: Reg2 Template? #18444

    Hi Dr. Shah — thanks for this! I’m running into an error:

    
    asdocx regress score i.asian, label template(reg2) replace save($Results/Regress.docx)
    
    
    Error:
    
    i.asian invalid name
    r(198);
    

    So, I remove the factor notation and try this:

    asdocx regress score asian, label template(reg2) replace save($Results/Regress.docx)

    A new error:

    variable previous_sheetname undeclared
    variable sheets undeclared
     masterclass_populator():  3499  flexmat_to_excel() not found
                     :     -  function returned error [1]
    r(3499);
    

    Interestingly, this is the same error I received on the new thread I posted a few minutes ago. Any ideas?

    Kevin Blaine
    Participant
    Post count: 51
    in reply to: Reg2 Template? #18371

    Hi again Dr. Shah — any chance you might be able to provide some clarification?

    Kevin Blaine
    Participant
    Post count: 51
    in reply to: Reg2 Template? #18359

    Hi Dr. Shah — just following up on this. Thanks!

    Kevin Blaine
    Participant
    Post count: 51

    Ah — apologies I missed this!

    Thanks!

    Kevin Blaine
    Participant
    Post count: 51

    Hi Dr. Shah — any chance of support for community-contributed program groups?

    Kevin Blaine
    Participant
    Post count: 51

    Hi Dr. Shah — it looks like continuous variables aren’t being reported when notr is invoked. Here’s the output:

    
    asdocx tab age, template(table1) replace notr save("/Users/default/Downloads/Table")
    
    
      here
       
                                   Table 1: Demographics
      0 |1                                            2                             3                 4               5 
    ----+----------------------------------------------------------------------------------------------------------------------------------------
      1 |Variables                             0 (n=37)                      1 (n=37)        Total (74)         P-value 
    ----+----------------------------------------------------------------------------------------------------------------------------------------
      2 |Age                           24.086 (± 6.247)              24.194 (± 6.210)                                   
    ---------------------------------------------------------------------------------------------------------------------------------------------P-values by t-test for continuous variables and Chi2 test for binary/categorical variables. 
      
    
    
      here
       
                                   Table 1: Demographics
      0 |1                                                  2 
    ----+-----------------------------------------------------------------------------
      1 |Variables                                 Total (74) 
    ----+-----------------------------------------------------------------------------
      2 |Age                                                  
    ----------------------------------------------------------------------------------
    P-values by t-test for continuous variables and Chi2 test for binary/categorical variables. 
    
    
    Kevin Blaine
    Participant
    Post count: 51

    Fantastic! Thank you!

    Kevin Blaine
    Participant
    Post count: 51

    I deeply appreciate all your work on this. Thank you!

    Kevin Blaine
    Participant
    Post count: 51

    Thank you, Dr. Shah. I so appreciate it!

    Kevin Blaine
    Participant
    Post count: 51

    Hi Dr. Shah — I’ve updated asdocx, but I’m still having issues using tabdisp. See example below:

    sysuse bplong.dta
    
    tabdisp when, c(bp) by(patient) concise
    

    Results:

    ...
    ----------+---------------
    117       |
       Before |            161
        After |            152
    ----------+---------------
    118       |
       Before |            165
        After |            174
    ----------+---------------
    119       |
       Before |            149
        After |            151
    ----------+---------------
    ...
    

    Using asdocx:

                                     Tabulation of when
      0 |1                                                   2 
    ----+-----------------------------------------------------------------------------
      1 |Status                                             bp 
    ----+-----------------------------------------------------------------------------
      2 |Before                                            143 
      3 |After                                             153 
    ----------------------------------------------------------------------------------
    

    asdocx seems to be collapsing the data or only presenting one observation instead of separating out by PatientID.

    Any ideas?

    Thanks,
    Kevin

    Kevin Blaine
    Participant
    Post count: 51

    Hi Dr. Shah — this is true for me too, but when using list and tabdisp. Any help would be appreciated!

    – Kevin

    Kevin Blaine
    Participant
    Post count: 51

    EDIT: Fixed! I was separating the addparts, notes and addparts, title into two commands. Putting both under the same flexmat addparts command fixed it.

Viewing 15 posts - 1 through 15 (of 41 total)