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

Marginal Effects multinomial logit model (Dummy Interpretation)

Dear All, I am running a multinomial logit model for my research. I am creating a categorical variables (dummies) for industries and for institutional investors. My independent variable are choice of...

View Article


Points in Multiple Regions

I have data of the form: point region 1 region 2 region 3 ... 1 0 1 0 2 1 0 1 3 0 1 0 4 1 0 0 5 1 0 1 ... There are 13 regions and I want to assign each of the points with an ID corresponding to that...

View Article


BMI calculation

Hello, I have a question regarding the calculation of BMI. I have in my data set the variables weight and height but when i calculate the BMI i get the wrong outcomes (big percentage underweight people...

View Article

Most efficient way of handling these two files?

Hi All, If anyone could suggest a code or a different way to look at this problem I'm having: Using a simplifed version of my sample: I have one main file with rainfall amounts by clusters(c) year c1...

View Article

LASSO (lars) analysis with first variable fixed.

Hi, I have a quick question regarding the LASSO technique using the lars command in stata. I am intereseted in the effect od education on health related quality of life. The variable Education_level is...

View Article


Model misspecification - very large t-statistics

Hello, I am running a fixed effects model using 4 variables. The variables show very significatn results (0.001) and standard errors below 0.5. However, when I control for autocorrelation and...

View Article

Zero inflated models

I have a question concerning zero inflated negative binomial models. I have a model I'm running, If I use negative binomial I have significance on several key variables. I tried running a zero inflated...

View Article

merge datasets; r(459); variable does not uniquely identify observations in...

Hello everyone, I just startet to use stata and have a problem with merging 3 different datasets (with Stata 12). I used the merge (m:1) command and got an error message r(459) "variable does not...

View Article


xtabond2 doesn't return R2. How can I add R2 I calculate myself to the...

I'm running a dynamic panel model using "xtabond2". It doesn't return R2 (r-squared) so I need to calculate it myself. The problem is I need to store this R2 in the e-class results so later on I can...

View Article


Help with mixlogit

I am new to Stata and specifically to the mixlogit command. I am trying to work out a model and have two main questions: 1. How can I derive the marginal effect of an independent variable after...

View Article

stcompet

I'm trying to run a competing events survival model to analyse the time to school dropout and completion. I'm using Stata 14.1 and have installed stcompet but I seem to be getting an r(198) error code...

View Article

How does Stata calculate the “predict varname, u” after xtreg random-effect?

What "predict varname, u" after xtreg with random-effects really do in Stata? How it works? I mean, how the ("individual") random-error component u_i is extracted from the overall e_it error component?...

View Article

test post code

testing Code: sum dayhours

View Article


Export excel makes dropdown boxes disappear

Hello, I'm using stata to export a list of around 5,000 health facilities to a pre-formatted excel workbook. The stata export is a sort of 'data' tab for the rest of the workbook. There are four other...

View Article

Double IF-function in ttest

Dear all, I want to do a ttest on the variable CARA3 if the variable HFI > 0.64195 and HFI<0.119814 However, this function is not working: ttest CARA3==0 if HFI < 0.64195 | HFI > 0.118914...

View Article


Pandel Data: Within-firm variation using Xtreg. Split variable in two time...

Hi! I have a panel data ( firmID and year). I want to do a within-firm variation to analyse different measures. It should look like this: Var1 = size in period 1990 - 2000 Var2 = size in period 2000 -...

View Article

Exlaining xtnbreg dispersion statistics in layman's terms

Hello Everyone, For a paper, I have estimated a series of longitudinal negative binomial regression models using Stata's xtnbreg command. However, for reporting purposes, I have the following...

View Article


Data management - looking for command (seems to be somewhere between reshape...

I apologize for the janky subject, but I'm not sure how to express this in general terms. I've looked over the Data Management manual and other sources trying to find if there is a command that will do...

View Article

Pairwise correlation

Hiya I have a problem regarding the pairwise correlation. Following is the output format: Var1 Var2 Var3 Var4 VAR1 1 VAR2 0.98* 1 0.9* 0.9 VAR3 0.09 0.02 1 0.34 VAR4 . . . 1 My query here is why there...

View Article

nested regressions -does the order matter?

Hi everyone, I would like to apply a nested regression using the nestreg command Code: nestreg: reg riskperc (income sex age) (...) . I have seven blocks in total, each representing different...

View Article
Browsing all 72756 articles
Browse latest View live


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