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

Help creating a frequency histogram with a proportion curve?

Hello! I am trying to make a specific type of histogram in Stata 12.1 and am not sure how to get there. Thus far I have a histogram that looks like this: Array Here is my code if it's necessary or...

View Article


splines in psmatch2

Dear Statalist member, I want to do propensity score matching using psmatch2. There is an option for using splines to get better fits for the propensity scores, but I can’t figure out how to use it....

View Article


Quadratic specification and time-series operators: how to calculate the...

Dear all, I would like to estimate a quadratic equation in order to find the point at which the variable x maximizes the function y (turning point). I take the natural logarithm of all variables and...

View Article

Generalized Diff-in-Diff to capture treatment effect on relation between Y and X

I use a diff-in-diff design to capture the effect of a treatment on the coefficient b1 of the following model: Y = b0 + b1*X + u. The full model therefore is: Y = b0 + b1*X +...

View Article

Heteroskedastic Ordered Logistic Regression (oglm)

Hi, What are the criteria or strategies used to includes or excludes the variables when estimate models to predict the likelihood of independent variables, special when using "Heteroskedastic Ordered...

View Article


Using if command for limiting sample in panel data

Hi all.. to begin with, I have a panel data of 24 companies with annual data from 2005-2014. I have variable revenue and some other variable such as equity, age of the company, GDP, inflation etc....

View Article

interaction effects

Hello, I need some help with my regression: : Deposit AGE INCOME JOB (INCOME*CRISIS) Crisis is a dummy variable which can be 1 (crisis) or zero otherwise. I need to center my variable income on the...

View Article

Fixed Effects Panel regression with vce(cluster): Post-estimation problems

I am analyzing an unbalanced panel of firms over a 10 year period with 155 observations in 50 cross-sections. I ran a regression with both a fixed and random effects model and then used the...

View Article


Losing observations

Hi everyone, I am trying to perform pca. Before anything, I've been told to make sure about the correlation of the variables I will be using (the bigger the correlation the better). The problem is that...

View Article


Using Xtabond2 for Dynamic Panel Data Analysis

[COLOR=rgba(0, 0, 0, 0.85098)]Hi. I am trying to estimate bank lending channel of monetary policy utilizing stata's xtabond2. I have not used this command before so not sure if I'm doing it correctly....

View Article

taking value of a variable for different obs with same value of another variable

I have a dataset where each line concerns procedures performed in different hospitals and a lot of the respective hospital's characteristics for the period of 2000-2014. One of them, which is the...

View Article

stata r(504) estimates post: matrix has missing values

Hi everyone, When I was using the xtivreg2 command, r(504) error occurred saying the matrix has missing values, which is not true. Does anyone know how to solve this problem? Thanks a lot!

View Article

xtivreg2 omitted instruments

Hi everyone, When I use the xtivreg2 command, my instruments get all deleted because of collinearity (there are 7!), but when I check it, the correlation is not that much, how do I solve the problem?...

View Article


Geo-coding with Stata---geocode3 and mqtime

Hi, guys! recently i'm working on geo-coding with stata. but i have some problem. First, when i run geocode3 command which provide latitude and longitude of one place , but there is a error message...

View Article

generating clusters within a dataset

Hi, I'm looking for help on the following issue. I have a dataset of pairwise comparisons listing distances between id1 and id2: id1 id2 distance AB-03 AB-07 1 AB-03 AB-06 1 AB-06 AB-07 0 I would like...

View Article


eivreg (errors in the variable regression): Generating and saving fixed effects

I'm using to the eivreg command to control measurement error on some covariates in my model and a couple issues have come up. 1) I want to include fixed effects and it appears the only way do that with...

View Article

coding help - survival analysis

Hi everyone. I am trying to figure out the code for survival analysis. I have watched some videos online and read on this topic and was able to pull up the basic codes and I am stuck. I have 1 year...

View Article


send multiple lines of text in body using -mail-

Dear Forum Users, I am using a MAC: I just discovered the user-written command -mail- which only works on MAC as far as I understand. The command allows to send lines of text extracted from a using...

View Article

Simulating data with variables correlated within groups

Hi all, First, I'm sorry if I have failed to find an existing thread discussing this issue. I am attempting to run a simulation where I allow variables to be correlated within groups. I have found an...

View Article

Any tools for measuring Stata performance (e.g., CPU time)?

I'd like to do some simple comparisons of Stata in different environments (Windows desktop, virtual Windows, unix server). Other than the timer command, I can't find any tools for measuring performance...

View Article
Browsing all 72758 articles
Browse latest View live


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