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

keep the last observation based on a group of variables

Dear Statalisters, Below is sample of my data : : * Example generated by -dataex-. To install: ssc install dataex clear input str3 ticker int analys double value int(fpedats anndats) "ASA" 8856 3.8...

View Article


Renaming several variables in a systematic way

Dear users, I have the following question: I have several thousand of variables that have the following format in their names var0101, var0102,......, var0111, ......var1101,.... Where the first two...

View Article


Interpreting VAR results

Hi Can any one help in interpreting results of VAR in First Differences? dloglfprf Coef. Std. Err. z P>|z| [95% Conf. Interval] durbantorural | L1. | .5938899 3.550668 0.17 0.867 -6.365291 7.553071...

View Article

Transforming Dyadic Dataset into Monadic

Hello, I am having a hardtime thinking about ways to merge a dataset that is dyadic, into monadic. The dataset is on foreign aid and the authors have designed in the following manner: year -- donor...

View Article

Dynamic panel query

Hello! I am confused between two model choices, hence would like an opinion on what might be appropriate. Here is how my data is setup: I have 120 firms in my data with daily frequency over 12 years....

View Article


Problem generating unique household id

Hi all, can somebody help me out on this problem: I need to generate a unique household id (hhid) from a survey data that list all household members. I have this two variables that clearly distinguish...

View Article

problems running a anova-manova

Dear all, I really hope that someone can help me out! I am busy with a study about safe sex behaviour. I would like to know what influence this behaviour. Herefore the respondents had to fill in a...

View Article

Comparing OLS and IV estimates with endogenous dummy regressor and continuous...

I have a question regarding interpretation of coefficients in a model with endogenous dummy variable. The model is Y = a + bD + e, where D is endogenous 0/1 dummy. I have an instrument Z, which is...

View Article


Counter in Mata

Hello, I am writing a code in Mata. In this I need to create some matrix R1, R2 , R3 ,...,Rn. In Stata, I could write: forvalues h =1/n { ... commands.... matrix R`h'= expression } However, I don't...

View Article


Counter in Mata

Hello, I am writing a code in Mata. In this code I need to create some matrix R1, R2 , R3 ,...,Rn In Stata, I could write: forvalues h =1/n { ... commands.... matrix R`h'= expression } However, I don't...

View Article

Robust Regression

Using stata 13.1 on windows 10. I have a data set which I have cleaned up. However, when I ran the data (OLS) and tested for heteroskedasticity it returned a highly significant chi square, Also,...

View Article

-fitstat- and -estat ic- giving different AIC/BIC values

I am estimating a number of regressions, including OLS, tobit and GLM. Stata gives the AIC and BIC values when you do the GLM model, but for OLS and tobit there is an additional command. When I have...

View Article

Panel data: unbalanced data or balanced data? (fixed effect)

Hello, Curreny I am writing my master thesis about the impact of financial variables on soccer performance. My dataset consists of 23 clubs which played in the highest Dutch soccer division between...

View Article


Running group counter

I'm using a panel dataset where the units are individuals but each has a unique household id (hhid) in a given month (date) All I'd like to do is create a running household counter, hhnum, that repeats...

View Article

Type Mismatch Error

Hello, I'm doing a cluster analysis by schools and I'm trying to drop the cases that are in a school with fewer than ten respondents in the sample. When I tried the replacement command I got the type...

View Article


Arellano-Bover/Blundell-Bond lags?

Dear all, I am struggling with the Arellano-Bover/Blundell-Bond model, especially with how many lags to include. I have no idea when to add 1rst, 2nd or 3rd lag to the dependent variable and the...

View Article

Test Post - No help needed

Hello, I am a first time user of the forum and a long time reader. This is just a post to try before I attempt to ask the questions I need help with.

View Article


cfNRI

Hello I would like to calculate the category free NRI with stata. I tried a lot of programs already but didn t manage to calculate id. Could somebody help me? Thank you very much for your reply. Kind...

View Article

help with mahapick

Hello, I am trying to use mahapick, and I though I understood how it worked, but seems like I was wrong. my code is as follows: mahapick score, idvar (company) treated(treat) pickids( match) matchon...

View Article

Max occurrence of variable in an observation

Software: OSX, Stata 13.1 Problem: I want to generate a variable that contains the maximum times an event occurs in an observation. I will try to illuminate my problem, but please ask questions if I am...

View Article
Browsing all 72756 articles
Browse latest View live


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