Forum Replies Created
-
AuthorPosts
-
in reply to: asdocx seems not to work after estimates use #18598
Hi Dr. Shah — is there support in the nested regression tables to include AIC/BIC? In playing around, I see I can add stat(aic) and it is shown as a label, but the value is blank. I know that asdocx has to have this number, since it’s a part of the non-nested command. Any ideas?
in reply to: Reg2 Template? #18520Hi Dr. Shah — just following up on this!
Thanks,
Kevinin reply to: Reg2 Template? #18497Hi 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!
in reply to: Reg2 Template? #18465Thanks 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!
in reply to: asdocx + Histogram #18464Thank you!!
in reply to: Reg2 Template? #18444Hi 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?
in reply to: Reg2 Template? #18371Hi again Dr. Shah — any chance you might be able to provide some clarification?
in reply to: Reg2 Template? #18359Hi Dr. Shah — just following up on this. Thanks!
Ah — apologies I missed this!
Thanks!
Hi Dr. Shah — any chance of support for community-contributed program
groups
?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.
in reply to: bysort and if don’t get along #17677Fantastic! Thank you!
I deeply appreciate all your work on this. Thank you!
in reply to: mrtab with asdocx in Stata #17675Thank you, Dr. Shah. I so appreciate it!
in reply to: bysort and if don’t get along #17650Hi Dr. Shah — I’ve updated
asdocx
, but I’m still having issues usingtabdisp
. 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 -
AuthorPosts