stata

  1. T

    Help with stats work

    Hi everyone at Talk Stats, I've really been struggling on the correct method to use to prove/disprove if my results are statistically significant. For the context in 2006/07, the UK tuition fees have changed from £1k to £3k and then again in 2012 to £9k. Attached is a text file of my collected...
  2. M

    Difference in Difference Method

    Hi guys! For some research we ran a regression analysis in Stata using the Difference in Difference method. this method uses a controlling group of countries to neutralise other effects than the effect of change in regulations. Afterwards we manipulated the data deviding it through year 2011...
  3. H

    Difference-in-differences in Health Economics Research

    Hi, I'm doing a difference-in-differences analysis of a health policy intervention. Health clinics are paid for the percentage of eligible patients who they give the right treatment to. The clinics are measured/paid separately for each type of treatment indicator. One year, some of the...
  4. G

    Create a dummy conditional on two other variables

    Hello there, I have data on European Union membership in the form of a dummy variable were eu_o = Origin is a member, eu_d=Destination is a member. I want to create another dummy variable that takes the value of 1 if both eu_o=eu_d=1. Is there a command to do this?
  5. S

    VAR Model Lag Length

    Ba I intend on estimating a reduced form VAR but I am struggling to choose a lag length. Initially my variables all contained a unit root but I first differenced them in order to induce Stationarity. Based on my estimation sample, the FPE, AIC, HQIC picked 4 lags while the SBIC chose 1 lag. I...
  6. T

    Logistic Regression Stata: ommitted due to collinearity ?? Help

    Hi there, I'm an MSc student in Medical Entomology and I'm in the midst of analysing data for my final project write up. My project is assessing the efficacy of different insecticide treatments applied in experimental huts against malaria mosquitoes. Now my dependent variables are: mortality...
  7. J

    Dynamic Panel Data for Financial Markets

    Dear all, I am trying to simultaneously estimate three equations using dynamic panel data. In each equation, the dependent variable (say, Y(3)) is a function of the two other dependent variables from that same period (say, X(3) and Z(3)), as well as the lagged values of the same dependent...
  8. S

    Stata - cross-sectional panel regression

    Hello, I want to predict returns of real estate investment trusts (REITs) in excess of the risk-free rate (rf), by using various explanatory variables which are market risk premium, the Fama&French factors and the Carhart momentum factor (MOM). For those not familiar with them; the market risk...
  9. C

    two-way mixed effects models

    I am trying to run a mixed effect model defined as: log(volume) = A + B*time + epsilon and A = A0 + A1*T + epsilonA B = B0 + B1*T + epsilonB The data is tumor volumes in two groups (T = 0 or T = 1) of mice, and each mouse's log(volume) increases linearly in time, but with slopes and...
  10. I

    STATA Logistic Regression Intepretation

    Hi, My dependent variable is goes to college coded 0=No and 1= Yes. I am not sure how STATA reads/ranks the dependent variable....thus I am not sure if I am interpreting correct. Predictor variables overeating status 1=does not overeat (reference) 2=sometimes overeat 3= always overeats and...
  11. C

    Extrapolation of yhat

    Hi, I am using non-linear regression ('nl' function, with independent variable of age) to estimate coefficient with the least sum of the square value (fitted non-linear curve). Later, I was using 'predict yhat' to predict the y-value for my samples with different age groups. However, the...
  12. N

    'mixlogit' and 'gmnl' commands not working with binary dataset

    Hello, My thesis is about Hybrid choice and multinomial logit. I´m using both commands 'mixlogit' and 'gmnl' in Stata for a dataset that: - Includes 12 choice tasks per person (a total of 81 respondents). - 3 different choices for each choice task - Just one answer must be selected (each...
  13. B

    Guidance for using propensity score matching in R

    I am new to programming as well as econometrics and would like to ask some guidance for learning. I am planning to calculate the effectiveness of a public works scheme in country A. By effectiveness I mean the rate of success by which participants were able to return to the open labour market...
  14. M

    Dropping observations w.r.t. 2 different variables

    Well, to be honest I do not know how to express my problem so I have uploaded an image. http://imgur.com/JkmzVbV I need a command for Stata to exclude families that do not have children that are younger than 18. So, the data set should look like this after the exclusion...
  15. H

    sttocc to create a nested case-control study in stata

    Hi all, I am using sttocc to created a nested case control study, within an incident epilepsy population. The commands therefore reads as follows: stset censor, failure(case) enter (time entry) id(patid) scale(365.25) set seed 9123456 sttocc, match (gender yob entry_year) n(20) nodots...
  16. L

    extract first value from multiple columns

    i am trying to do this in R. it is equivalent to the stata command rowfirst suppose i have four columns as shown below (T1, T2, T3, T4). I want to create a new column (TX) which contains for each row the first element in columns T1:T4. ID T1 T2 T3 T4 A 0 2 4 5 B . . 6 5 C . 8...
  17. S

    Interpreting VECM/ ECM result

    Hi, I am currently working on a paper where I run a VECM and get significant values. However, I am not quite sure about how to interpret the output and how take the different values and express them with an equation. I run the test in SATA using the vec command Attached is a picture of...
  18. T

    Coding for control variables in Stata 14 in linear regression?

    Hi - I need to control for two variables in my linear regression, the code thus far is; sort dde2 by dde2: regress sustain I have two mediator variables or control variables, gender and ses and I need to remove their effects. Any help greatly appreciated!
  19. V

    multivariate regression problem - correlated residuals

    this question asks for help for a statistical/econometric problem I can't get the clue: I have a classic multivariate regression problem, i.e. dependent variables are stored in matrix Y having dimension n x p. So p observations come from the same respondent i and we need to expect correlated...
  20. B

    [STATA - gsem] Multilevel Structural Equation Model - Meta Analysis

    Hello, I am quite familiar with mixed effects (multilevel models) in meta analyses. Now, I want to do a mixed effects (multilevel) meta analysis structural equation model (MASEM) with STATA and the gsem package because my data format is long. My data look like: `id studyId...