Quantcast
Channel: Statalist
Browsing all 65052 articles
Browse latest View live
↧

Question about reghdfe and dropping a dummy?

Hi all, I have a short question, does Stata drop a dummy automatically when using the reghdfe as it does for reg in order to avoid multicollinearity? As I went through the paper of the reghdfe author...

View Article


Stata Automation not creating "StataOLEApp" Object (VBScript)

Hi folks, I am trying to create the Object stata.StataOLEApp, but when I execute the following code, in VBScript: Code: Dim objStata Set objStata = CreateObject("stata.StataOLEApp") I get the following...

View Article


Calculating standard errors of proportions

Hi, I am performing a meta-analysis to identify pooled proportions of patients with specific complications across different subgroups. I have two columns (across 400 or so studies) - one that lists...

View Article

create index

Hello, I want to create an index. I created a variable that replaces the tiny by capital (cond1). It also replaces spaces with nothing (cond2). I wish to have an index. He will take the value of 1 if...

View Article

removing substring of charachters

I am not very experienced in Stata but I have built a code to take information from a text file and turn it into a data file. Some of the text are in bullet points such as "a. " I have figured out how...

View Article


Plot coeffients of regressions

Hi, I regress with the same independent variables for several dependent variables. This is the code i use to regess: foreach x of varlist ER_1- ER_12 { regress `x' Neg Market Price Mom } } Now I would...

View Article

Cox regression with categorical time-varying covariates

Hello everyone, I am currently struggling with some of my data analysis. I am not experiencing any problems with my results, but I am not sure whether I am using the right code. I get mixed messages on...

View Article

Between group comparisons in meta-analysis?

Hi, I am using metaprop to compare the pooled proportions of a particular outcome across different groups. I get the following output: Group 1 Sub-total | Fixed pooled ES | 0.13 0.13 0.13 53.73 Group 2...

View Article


Double quotes in outsheet

Dear All, I need to export data in a particular format and I am hoping outsheet or export delimited can deliver tab-delimited output where values are enclosed in quotes if and only if they contain...

View Article


Selection bias due to competing risk problem?

I am studying the risk of colectomy in patients with ulcerative colitis. I have previously shown that the risk to have UC is very low in patients having appendectomy (especially for appendicitis before...

View Article

How to perform logistic regression for study purpose in this dataset?

Hi, I have a question regarding how to organize the data in order to perform logistic regression. Please see the below sample dataset (part of the whole dataset composing nearly 400 observations):...

View Article

How to delete all observations except the last one in each month?

Hello, I am new in Stata. I would appreciate your help. I want to delete all observations except the last one in each month. So, I want the last observation of jan/1927, the last observation of...

View Article

Choice of Intel Xeon processor for running Stata

I am considering a new workstation for running Stata, both computationally demanding tasks such as boostrapping or mixed models on up to 10 millions of observations and manipulation of large files...

View Article


Restricted Cubic Splines

Hi there, I'm pretty new to STATA, and I was just introduced to Restricted Cubic Splines. Our instructor told us to use the "RCspline" command (she uses SAS, and hasn't been very helpful). I'm trying...

View Article

Combining many multiple variables in a bar chart

Hi there I'm looking to create a chart which looks like this http://imgur.com/a/POYQi I have 10 dummy variables for each person in my dataset of the form Dum1 = Coffee is favourite drink Dum2 = Coffee...

View Article


Oneway plot

Good evening all, I am trying to generate a one-way plot in which the y-axis has 8 dichotomous variables, and the X axis is a percentage of those who responded "yes" (coded as 1) on my Y variables. I...

View Article

Code for Combining Variables

Client sent me STATA file. Haven't used STATA since Clinton Administration. Basic commands I can do, but I need to combine data within a variable. Example. I did a statewide survey where people had to...

View Article


Image may be NSFW.
Clik here to view.

Retaining Individual Iterations of Bootstrap Estimates

Dear Stata Users: I'd like to retain individual parameter (B) and standard error (se) estimates from a bootstrap procedure. That is, sample with replacement N times, run a regression on each of the N...

View Article

Poisson regression using mid-year population estimates (census data)

Dear all I am reasonably familiar with using Poisson regression as part of "stset" when I have dates individuals entering observation, dates they leave or the event happens and whether or not an event...

View Article

Getting either error bars with "twoway" or connecting...

Hi I have three variables in my dataset that I have created separately from my original dataset: - mean (represents proportion with the outcome) - se (standard error of the mean) - year (explantory...

View Article
Browsing all 65052 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>