I am trying to keep all ICD9 codes after the first 2 numbers 73
I have tried keep if Principal_Dx_ID == 73*
I get the error...
Announcement
Collapse
No announcement yet.
29 results in 0.0065 seconds.
You can also choose from the popular tags.

Attaullah Shah
Attaullah, I have used asdoc before and it is very helpful. How would one get the 95% CIs?...
 8 posts


looping over many regressions
Hello I am trying to run 11 separate regressions. One with each of the local vars as a single predictor and "bbq_trans_rc" as the outcome....
 8 posts


Using foreach on for a subset of the data
Hello, I am trying to replace missing values of ptfidelity_9_  ptfidelity_11_ below with 0
Code:
foreach x of varlist ptfidelity_9_...
 3 posts

Error when producing graph using pbalchk
Hello, I am trying to use the user written command pbalchk to check balance after IPW.
ely_dly is my matching variable.
When...
 1 post

Thank you very much for the egen suggestion. That is what I needed.
 4 posts
Leave a comment:

Replacing missing value with average of selected responses
Hello, I am trying to replace a missing value with the average several other responses. I am running the code below which does not end up replacing the...
 4 posts

command pbalchk with fator variables
Hello, I am trying t use the command pbalchk to examine the balance of covariates with ipw weights. A shortened version of the model is below..daetaex...
 2 posts

Thank you, Rich. This worked perfectly. I will review the FAQ. Thanks for the suggestion....
 4 posts
Leave a comment:

Looping and Recoding
looping and recoding
Hello, I am trying to reverse code pt_bbq1_  pt_bbq14_ below
There are 5 possible response and I want to make...
 4 posts

I installed the egenmore without problems with Stata 15. Thanks for the information about anycount also....
 8 posts
Leave a comment:


conditional rowtotal
Hello, I am trying to sum across columns only the 1s.
I have tried
egen pri_sum=rowtotal(pri_q1pri_q7) if (pri_*) < 2
...
 8 posts
Leave a comment: