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

Add a new graph type to "graph twoway"

I wrote a simple program called tsline2 that plots a tsline and formats the graph in a certain way (white background, yline at zero etc). The program works ok. However, I cant combine in with other...

View Article


Granger test of I(0) and I(1) variables.

Dear users, How could we Granger test when two variable are not stationary at the same order. Which test should we use in Stata? Many thanks in advance.

View Article


Average marginal effect after a xtmelogit

Hi I really hope that some coul help me. I am not that into Stata, but I am running this multilevel logit xtmelogit SOCkontraFP v3 i.skoleuddannelse i.nyaldersinterval i.indkomstkvartil...

View Article

sem and gsem can produce very different coefficients in the same linear...

I'm trying to fit a linear structural equation (along with a nonlinear measurement model) in a panel data setting. I have noticed that the commands sem and gsem produce very different estimates on the...

View Article

A special case of survival analysis?

Hi All, I have a dataset of employees of an organization between 2013 and 2015 with several variables. Using this dataset, I want to model probability of retention over time for future job applicants....

View Article


Selecting cases based on range of dates

I have a data file in excel. The dates are in MM/YYYY (e.g. 01/2010). Excel displays it as Jan-10. Using Stata, I imported the excel file. The date format becomes %tdMon-YY. I need to select cases...

View Article

Error: estimated covariance matrix of moment conditions not of full rank, and...

Hello, I am trying to run the following regression: by id: ivreg2 a (b c d=iv*), gmm2s robust small first ffirst The problem is that I always get an error for id = 15, namely "Error: estimated...

View Article

How can I get exponentiation coefficient of stcox or streg in the output...

Hello everybody, I am using command "esttab" after estimating streg (without adding "nohr" option at the end of "streg" command ), and I need the saved table to report exponentiation coefficients...

View Article


Finding the correct likelihood (density) for each observation using stcox

Hello everyone, I need to find the value of log likelihood for each observation after estimating a survival model using "stcox" command. I have tired by I could not reproduce the reported Log...

View Article


help imposing a non-linear constraint on an SUR regression

I was wondering if anyone would be to please offer me some advice concerning STATA? I am running an SUR regression of the form: y1 = x1 + x2 y2 = x1 + x2 and use the tesltn command to test: _[y1]x1 /...

View Article

Creating Cohorts in Panel Data Where Populations Enter and Exit the Data

Software: OSX, Stata 13.1 Problem: To run regressions on my data, generating a unique identifier is imperative. My data is defined as panel, covering a period from year 2007 to 2013, grades 3 through...

View Article

Hausman test of IIA - Interpretation

Dear all, I tested my 2011 data for IIA and got this result: qui mlogit outcomes $xlist [pw=pfwgtpop], baseoutcome(0) vce(cluster hh_id) allbaselevels estimates store all qui mlogit outcomes $xlist if...

View Article

Overdispersion/Excess Zeros and Negative Binomial Panel for Crime data

Hello, I have a panel of homicides by municipality over a 12 year period (independent variables include the presence of certain gangs (coded 1/0), Infant Mortality Rate, and Percent males aged 15-29)....

View Article


rqdeco

Hi, I'm trying to download rqdeco command, but I can't. I have tried this link: https://www.brown.edu/academics/economics, but it doesn't work. Someone could help me, please? Thanks, Angelica

View Article

Problem with running do-flies in STATA 13.0 for MAC

Hi So I have a peculiar problem. I am currently working on a project where I have switched from using STATA in Windows to MAC. I have copy and pasted the do-file and the first part of the code works...

View Article


Add a reference class to pre-defined Latent class analysis classes? .

Hi every one, I have a binary variable for asthma (yes and No). Among people with asthma, I use LCA to classify asthma severity using indicator variable such as frequency of attack, duration of an...

View Article

How Can One Learn How to Write a User-Written Command Program?

Dear Statalisters, Do you have any recommendations for how to learn to write a user-written program in Stata?

View Article


Squaring an ordinal distance variable -- does this make sense?

Hi list, I'm working on a project that's using regression to determine why people object to infrastructure projects. We theorize that distance from the project is an important explanatory variable. We...

View Article

How should I choose the quantiles in quantile regression ?

I am running a quantile regression where my dependent variable is the average debt maturity and I would like to know if there is a rule to select the quantiles of the regression. I am using quantiles...

View Article

Image may be NSFW.
Clik here to view.

Stationary data

Hello everyone, My question will sound easy but I get confused by reading so much different things : When you have datas and you don't know if its stationary or not, apply dfgls test on data, and you...

View Article
Browsing all 73356 articles
Browse latest View live


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