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

MMWS for exact matching?

Hi everyone, I have run across this question several times throughout the forum, and have also wondered it myself. Basically, people have questioned if there is a way to implement propensity score...

View Article


Multivariate imputation for a panel negative binomial outcome variable

Hello there, I carried out a complete case analysis via negative binomial GLM/GEE model to evaluate the impact of the policy of restricting the number o hours of alcohol sale on the prevention of road...

View Article


How to limit y-axis on box plot to exclude extreme outliers

Hi, I am trying to create a series of box plots for a set of data, but am running into some issues. What I want to do is include extreme outliers in the calculation for my boxplot (e.g. so they are...

View Article

time series data

I am kind of new to stata, so any help would be very much appreciated. I am using time series data. My date is of the form jan 2003, i converted it from string into float and a number appeared, and...

View Article

Image may be NSFW.
Clik here to view.

Panel data group

Hi, I have panel data for 4 years: year1 year2 year3 year4 the variable is z (income) for each id. I want to create 2 group A and B. If z is larger than 9 in year 2, the it belongs group A, if less...

View Article


create readmissino data with an index event

Hi, Sorry for this basic programming question, but I would appreciate any help with it. I have a dataset of inpatient discharges with several visits per patient and procedures. this means several rows...

View Article

reshape issue

Dear Stata users, I can't solve the following problem: Initial dataset structure company year varname varvalue A 2010 x1 2 A 2011 x1 6 A 2010 x2 3 A 2011 x2 5 B 2010 x1 4 B 2011 x1 1 B 2010 x2 6 B 2011...

View Article

Unable to reproduce Pearson's X^2 using mgof and Benford's distribution

I am interested in comparing the distribution of some observed counts and its theoretical distribution. One popular law is Benford's and Ben Jann wrote a Stata paper along with the command mgof at...

View Article


adding a covariate to moptimize_init_eq_indepvars inside an evaluator

Hi, I am running maximum likelihood estimation with moptimize where I passed my independent variables to the evaluator through moptimize_init_eq_indepvars(). I would like to add an extra covariate to...

View Article


Textmate 2 and STATA 14

I have been using Textmate 2 with the STATA bundle on STATA 13 for a while now. The feature that I use most often is COMMAND-R and COMMAND-OPTION-R which runs the do file. But today I installed STATA...

View Article

Graphing a nonlinear fit line

Dear Statalist, I'm trying to make a graph of a nonlinear function overlayed on an OLS line. When I run the code below, I get the attached figure. Despite experimenting with various options (e.g.,...

View Article

Testing for structural breaks

Hey everyone! I'm trying to run a test for structural breaks, but I have a problem. Whereever I am searching on the internet, the command "estat sbsingle" is recommended. So first I ran my regression...

View Article

Wald test of exogenity

I get this result after IVprobit model using Newey's two step estimation. Wald test of exogeneity: chi2(1) = 0.32 Prob > chi2 = 0.5716 I don't know how to interpret these results. does this means...

View Article


Limiting observation time in survival analyses

I have a dataset on blood pressure control over time. The event is blood pressure control (bp_control where 1 is yes and 0 is no). Time is measured in days. I want to limit the period of observation to...

View Article

Generating a unique case id

Hi everyone, I need some help to create a unique case id per patient. My dataset have duplicate records per patient. I am trying to identify unique patients by patient health card number (HC) and if HC...

View Article


mlogit compare marginal effects (margins) across two models

I would like to compare the marginal effects of variable B on two models: one which has variable A as the dependent variable, and another that has variable C as the dependent variable. I attach the...

View Article

Looping regression

Hello, I have investigated my problem and have not been able to find a solution. ***** I have a large number of variables (genetic SNPs, which begin "rs___") that I would like to run in a model. Rather...

View Article


svy with fixed effects?

Hello, I am running a difference-in-differences specification in the context of a complexsurvey design (Mexican census data). I am specifying the survey design using the svyset command. I want to...

View Article

Generating a reference price measure as a probability weighted sum of past...

Dear Statalist members, I am trying to create a reference price measure that is an average of past 250 days stock prices, weighted by the probabilities of a stock not being traded since the date of the...

View Article

Prgen STATA 14 _pecmdcheck is unrecognized

Dear STATA list servers, After updating to STATA 14 the prgen and prvalue functions are no longer working. After running a model and using the code I am given an error message which says "command...

View Article
Browsing all 73290 articles
Browse latest View live


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