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

Image may be NSFW.
Clik here to view.

New to STATA help!

Found someone to help, thanks

View Article


Does Instrumental variable address selection bias?

Hello Everyone, I am using two main explanatory variables in my study, one is continues variable, and one is dummy variable. I take an simple example here: If I want to address the relationship between...

View Article


Recover File

While saving my file, STATA crashed. The file directory lists the file as being much smaller than I know it would be if the save was completed. I get the ".dta file corrupt The file does not record...

View Article

Selecting the right analysis

So I want to compare the rates of infection in patients who received drugs A, B, C, and D. Patients could have received one, two, three, or all four drugs, and they could have been at different days...

View Article

checks if a third variable has same value for observations with the same...

I am trying to write a code that checks if a third variable (fonte) has always the same value for observations with the same other two variables (cep setor). I do not know how to create this variable....

View Article


New to stata! I need some help

Hello,my name is Zara.I am new to stata 13. I want an advice on how to generate dummy variables. I am doing a regression with panel data. I need to have 5 dummy variables. The variables are...

View Article

How to only keep those observation numbers that exist in two separate columns

I have matched data, i.e. data that matches individual in column 1 to individuals in column 2. As such, these can be viewed as a bipartite graph. I only wish to keep those individuals that exist in...

View Article

Merging datasets-one with observations, and the other with parameter estimates

The problem I am having is a bit difficult to articulate, but I will try my best. I originally had a dataset of the following form: Code: clear input float(Lender Borrower Amount) 1 2 1000 1 3 2000 2 5...

View Article


System GMM Estimation

Dear Members, could you please help me with System GMM estimation. I am using stata 13.1.and am studying the impact of finacial development on economic Performance(growth rate GDP per capita) for Panel...

View Article


gsem seemingly unrelated nbreg

Hello, I have a question. I am trying to estimate the following model seemingly unrelated nbreg with gsem: gsem (y1<- x1 x2) (y2<-x1 x2), cov(e.y1*e.y2) But STATA 13 cannot do it and it tells me:...

View Article

Cointegration test and Causality test for panel data

Dear statalist members,coud you please help me : I'm using stata 13.1 .I'm studying the relationship between Investment (in industrial energy efficiency) ,energy consumption and energy saving potential...

View Article

Image may be NSFW.
Clik here to view.

R cbind command - equivalent (or similar) Stata command?

Hello, I would like to run a multivariate model in Stata. In R someone can combine the response variables with the cbind command so a possible model would look like this: glmer ((cbind(D6,A6)) ~ age +...

View Article

Dummy variables regression- avoiding multicollinearity

I am currently running a completely flexibile regression, i.e a regression of y only on dummy variables. It is of very high dimension (more than 200 dummy variables). A snapshot of my data looks like...

View Article


Different results with xtpoisson and ppml

Dear all, I am trying to estimate a model where I am estimating the model using xtpoisson and ppml where we cluster at the panel id level. Although we are getting identical beta coefficients across the...

View Article

Risk differences with trial data

Hi statalists, I am trying to calculate risk differences for dichotomous outcome pph (difference in outcome proportions between the arms) in STATA for a non-inferiority trial and the associated 90%...

View Article


Locals not recognized when executing from do-file

Hi, simple problem: The following code works when directly pasting into the Stata execution field and pressing enter. When executing from the .do file editor I receive the message "invalid syntax"....

View Article

Panel | Fixed Effects | Time-invariant variables | Auxiliary regression

Hi, I need some help. I would like to use a fixed effects panel model but I have some time-invariant exogenous variables. Hausman-Taylor estimator is not an appropriate solution for me. I would rather...

View Article


single equation Error Correction Model

Could someone please explain how to do a single equation ECM in Stata? I have monthly observations on the exchange rate, which is my independent variable and on the price of copper which is the...

View Article

Marginal effects after fitting -mixlogit- for polytomous predictors

For -mixlogit-, if the predictor was polytomous instead of binary or continuous, when I calculate the marginal effects by simulating as described in Richard's post here, will I need to set all dummies...

View Article

Multivariate Multiple Regression

Hi Stata-users i´m currently writing at my thesis and have a problem i dont really know how to solve; maybe there is someone who knows how to do that ;-) For my thesis i´m analyzing stock returns of...

View Article
Browsing all 73290 articles
Browse latest View live


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