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

Theory question: Need references for DiD-Cox regression

Hello statalisters, I hope I'm not posting at the wrong place here. If I do, please let me know. I found a very informative old Statalist-Post about how to run DiD Cox-regressions (see...

View Article


code for Fama-Macbeth with Shanken (1989) correction

Hi statalist, I'm looking for a command to apply fama-macbeth regression with shanken correction. I find code written and presented in command fm and xtfmb. fm code is here:...

View Article


check whether variable contains specific realization

Hi all, I would like to check (in an if environment) whether a certain value of var2 appears somewhere in var1 and consequently mark it in var3; If possible also using a by operator to check that for...

View Article

Minimum Mean Squared Error estimator

Dear Statalist users, Any suggestion of documentation that discusses Stata implementation details of Verbeek and Nijman’s (J. of Econometrics, 59, 1993) Minimum Mean Squared Error (MMSE) estimator for...

View Article

Spmat command options- SAR, XSMLE, Spatial Lag

Hi Statalist, I'm creating a spatial wieght matrix; spmat idistance ddistrict lon lat, id(distid) dfunction(rhaversine, miles) normalize( . ) I was wondering if someone could please explain the...

View Article


How to obtain initial values for melogit

I have problem with my model, since stata iterations always end up with not concave error. One possible solution can be initial values. But the problem is I don't know the syntax for it. I've searched...

View Article

FE model: sufficient number of transitions?

Hi all, I am just wondering if there is a way or a rule of thumb on how many transitions I need to observe in order to run a FE model? I am looking at transitions out of cohabitation and am observing...

View Article

Converting EFA and Cluster Analysis Data to Multi-Dimensional Scaling in Stata

I originally posted this in the Sandbox and was advised to post it here. I appreciate any help. Here is my first posting: I am doing research on factors of student success using a 40-question survey....

View Article


qui and quietly are the same command? but "quietly" brings...

Hello everyone, I am leaning stata by following already made "do foles" The command below works fine. But as I replace qui with "quietly" (as I believe these two are the same command), it brings an...

View Article


Survival analysis

Hi all, In the review of a scientific article in which I made two type of survival analysis 1) Kaplan-Meier method with log-rank test and 2) Cox regression model, I received the following...

View Article

Confidence Interval for Logistic Regression

Dichotomous outcome: Negative biopsy(0) Positive biopsy (1) Three Predictors: x, y, z (all continuous variables) I use the command logit outcome x y z to get intercept and betas Risk score = intercept...

View Article

Reshaping data

Dear all, Am trying to reshape the data below so that each hhid is represented by a single observation. So far, I have tried creating a new "j" variable and use hhid as my "i" in vain. What can I do?...

View Article

Advice on creating a loop to generate a time updated slope variable

Dear Statalist This is my first post and I'm afraid I'm not a very experienced programmer and I can't find similar answers online but I really hope one of you will be able to help me. I am doing an...

View Article


Reorder multiple numbered variables (stub ending) sequentially and make them...

I'm using Stata 14 and have a seemingly simple question about order the variables in my list. I have multiple variables that are tagged with numbered stubs at the end. I'd like to order these variables...

View Article

Item response model in Stata 12

Dear all, I would like to use item response model (that is developed with Stata version 14) in Stata 12. However, whenever I tried to install it via "ssc install itr" or " findit itr" I could not find...

View Article


Interaction terms

Hi there, I am looking at the determinants of debt source before and after the financial crisis of 2008 and wondering what would be the best way to go about this in Stata. I have my dependent variable,...

View Article

Multiple observations per id

Hello, Im new to STATA so excuse my inexperience. In my dataset I have multiple observations per id. In a simplistic way it looks like this ID Dummy X Irrelevant data More irrelevant data 1 1 5 1 1 5 1...

View Article


Is there anything more efficient than rowtotal?

Hi, First let me provide a generalised version of my dataset. Code: * Example generated by -dataex-. To install: ssc install dataex clear input str2 a byte(b1 b2 b3 c1 c2 c3 d1 d2 d3 e1 e2 e3) "b1" 1 4...

View Article

Cumulative Abnormal Returns calculation

Hi, I am very new to STATA. I was wondering what the best variables to use to create a dataset for an event study on M&A returns that aims to calculate the cumulative abnormal returns.. Cheers Femi

View Article

Insignificant coefficients with fixed effects model

Hello, Im working with a model which try to explain drivers of income inequality in Latin America. My dependent variable is the Gini coefficient and as regressor I have a set of explanatory variables...

View Article
Browsing all 65550 articles
Browse latest View live


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