1. 10-14-2010
    Views:
    9,986
+ Post New Thread
Page 1 of 17 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 LastLast
Threads 1 to 60 of 1006

Forum: Stata

Stata usage and programming, Stata help

  1. Foreach in regression analysis

    Hi everyone, I have almost no experience with Stata but I am trying to get into it :). I have a simple table with column A including the...

    Started by Cunner‎, Yesterday 06:25 AM
    • Replies: 2
    • Views: 90
    Today, 02:09 AM Go to last post
  2. A little help interpretting this piece of code

    Hey I'm relatively new to Stata. I want to understand the following piece of code written by someone else. From what I gather it's ranking workers...

    Started by SC5‎, Today 12:36 AM
    • Replies: 0
    • Views: 20
    Today, 12:36 AM Go to last post
  3. Agency IDs organization

    I would like to locate/organize my valid agency IDs (agencyid). agencyid CA0006 TN0106 NY0009 LA0035 TN0105 TN01o

    Started by Marvin85‎, 05-17-2013 01:00 PM
    lower, string, upper
    • Replies: 3
    • Views: 98
    Yesterday, 07:48 PM Go to last post
  4. effect sizes for xtmixed and logit

    Hi, I have a few questions regarding effect sizes for regressions- I have a relatively small sample size so am trying to support findings with...

    Started by jmem16‎, Yesterday 04:57 AM
    • Replies: 1
    • Views: 49
    Yesterday, 07:47 PM Go to last post
  5. excluding unbalanced data from a subgroup

    Hello all, I am using an unbalanced data set with 24 years of firmdata. What I would like to do is to create a subgroup of this dataset. I would...

    Started by LGilbers‎, 05-21-2013 01:27 PM
    • Replies: 0
    • Views: 59
    05-21-2013, 01:27 PM Go to last post
  6. Optimal number of lags before applying the Augmented Dickey-Fuller in STATA

    As a part of my master thesis, which is a study of the relationship between oil prices and the performance of alternative energy shares, I have to...

    Started by halfi01‎, 05-21-2013 12:15 PM
    • Replies: 0
    • Views: 82
    05-21-2013, 12:15 PM Go to last post
  7. simultaneous equations stata

    Hi, I want to estimate the following simultaneous equations: y1= y2+x1+x2+x3 y2=y1+x1+x2+x3 When the control variables are not the same...

    Started by carmen256‎, 05-21-2013 11:09 AM
    regression, simultaneous equations
    • Replies: 0
    • Views: 45
    05-21-2013, 11:09 AM Go to last post
  8. Question Comparing coefficients across two groups

    Hi everyone! Without Success, I've tried all day long to test whether the coefficient on "rooms" in group1 is significantly different than the...

    Started by Stata_User3‎, 05-20-2013 02:09 PM
    • Replies: 2
    • Views: 136
    05-21-2013, 10:58 AM Go to last post
  9. STATA Query regarding looping over different observations of same variable

    ID times drug1date_ drug dosage drugcode retrospectdate Date_baselineQ finishdate unitcostmed1 basecost prospectcost...

    Started by andes6‎, 05-21-2013 08:44 AM
    • Replies: 0
    • Views: 81
    05-21-2013, 08:44 AM Go to last post
  10. Panel data - dropping values after a missing one

    Dear fellow talkstatters, I am working with paneldata for my thesis. In order to get a balanced sample, I already deleted all the firms who missed...

    Started by studenttt‎, 05-19-2013 08:58 AM
    • Replies: 1
    • Views: 106
    05-21-2013, 01:07 AM Go to last post
  11. [Stata - Selection effects/endogeneity] Treatreg or Heckman?

    Hello TalkStats For my dissertation I am analysing the relationship between the type of school a student attends (public or private) and their...

    Started by feuch24‎, 12-04-2012 11:49 AM
    • Replies: 5
    • Views: 1,187
    05-17-2013, 04:25 PM Go to last post
  12. Derived catergorical variable from two other catergorical variables.

    Hello, At present I have social class variables for both mum and dad but I want to create an overall variable : parental class. There are 6...

    Started by loops22‎, 05-17-2013 04:45 AM
    • Replies: 2
    • Views: 100
    05-17-2013, 05:21 AM Go to last post
  13. Tabulate only the percentages

    I am creating a table in en excel and I need only the percentages. tab var1 var2 But I need only the percentages, not the frequencies. ...

    Started by Marvin85‎, 05-16-2013 12:30 PM
    show only percentage, tabulation
    • Replies: 1
    • Views: 69
    05-16-2013, 08:04 PM Go to last post
  14. Extract State letters from string variable

    Hi I have a variable that contains numbers and letters. Ideally, participants had to enter their first two state letter - ex. NY- following by...

    Started by Marvin85‎, 05-14-2013 08:31 AM
    extract letters, string
    • Replies: 4
    • Views: 137
    05-15-2013, 05:27 PM Go to last post
  15. Logistic errors in regression

    Hello! I have some problems with this program. Can you help me a little bit? I need to use ologit and errors must be logistic. What is the code for...

    Started by karo‎, 05-15-2013 01:59 PM
    • Replies: 0
    • Views: 94
    05-15-2013, 01:59 PM Go to last post
  16. Generate a variable based on 3 dummy variables

    Hi all, I have: HIV 1= Positive 0= Negative Syphilis 1= Positive

    Started by Marvin85‎, 04-08-2013 03:44 PM
    gen, gen without overlapping, generate new variable
    • Replies: 3
    • Views: 194
    05-14-2013, 07:22 PM Go to last post
  17. how to interpret marginal effects?

    Hi there! I am using some panel data to look at determinants of school attendance for 2 different years, 1995 and 2005. After running the...

    Started by belfagor71‎, 05-13-2013 05:32 AM
    • Replies: 0
    • Views: 79
    05-13-2013, 05:32 AM Go to last post
  18. How to subtract two values from each other within the same variable??

    Dear all, One quick question. I've been trying to resolve this issue for quite some time now. I want to see how many times did the 'decile'...

    Started by diesel‎, 05-09-2013 02:41 PM
    • Replies: 1
    • Views: 177
    05-12-2013, 05:48 PM Go to last post
  19. Lightbulb OUTREG "varlist not allowed", "option 3aster not allowed"

    I ran outreg x y z g using blahblah, blahblah It told me "varlist not allowed" So I just deleted all variables and just put

    Started by urch‎, 05-12-2013 07:48 AM
    • Replies: 1
    • Views: 80
    05-12-2013, 05:34 PM Go to last post
  20. Tabulate : subsets from the same variable

    Hi Stata Users, You should maybe find my problem very basic... I have tried a lot but I am not able to find the answer. I want to use this...

    Started by AnBodet‎, 05-08-2013 05:08 PM
    • Replies: 1
    • Views: 132
    05-08-2013, 05:31 PM Go to last post
  21. COLLAPSE: How to multiply values?

    Dear all, I am collapsing all the rows with the same ID. I'm using the command COLLAPSE and I know how it works if I need the mean, sum, count,...

    Started by oleguerplana‎, 05-07-2013 07:42 AM
    • Replies: 3
    • Views: 115
    05-08-2013, 03:05 AM Go to last post
  22. Multiple response variable bad coding

    Hi guys, I have a race multiple response variable (participants can choose more that one option) that was coded incorrectly. Race:...

    Started by Marvin85‎, 05-02-2013 03:27 PM
    incorrect coding, missing values., multiple response var
    • Replies: 5
    • Views: 244
    05-05-2013, 01:50 AM Go to last post
  23. Deleting outliers AGE varieble

    Hi all, I am conducting a bi-variate analysis of age groups (>40 years, 40-49, and 50-75) and basic demographic characteristics of women who had a...

    Started by Marvin85‎, 05-01-2013 10:12 AM
    outliers
    • Replies: 3
    • Views: 152
    05-05-2013, 01:46 AM Go to last post
  24. avoiding double counting from merged datasets

    Hi there, I have merged two client datasets. The first dataset contains demographic information about the individuals, the second contains those...

    Started by jamieb‎, 04-30-2013 11:23 PM
    double counting, merge
    • Replies: 2
    • Views: 145
    05-03-2013, 05:23 PM Go to last post
  25. multivariate GARCH with sample expansion problem

    I was asked to estimate multivariate GARCH model for the spot and futures returns series. But since the series only contain 66 observations, I was...

    Started by Elessar‎, 05-03-2013 05:09 AM
    • Replies: 2
    • Views: 141
    05-03-2013, 08:33 AM Go to last post
  26. Hausman test interpritation of results

    Hi Please, could you explain me the result of the Hausman test. As I understand, since the p-value equals 0.2077 we fail to reject the null and...

    Started by ger_11‎, 05-02-2013 02:51 PM
    • Replies: 2
    • Views: 257
    05-02-2013, 05:40 PM Go to last post
  27. Creating an age variable from a date of brith variable

    Hi there, I'm a bit confused with how to manipulate date variables in stata. I have a dataset in excel of client information which I have uploaded...

    Started by jamieb‎, 04-30-2013 10:21 AM
    dob to age
    • Replies: 2
    • Views: 119
    04-30-2013, 10:19 PM Go to last post
  28. Drop group if only one observation.

    I have a huge unbalanced panel dataset. xtset companyid period. (Period is from -1 to 13.) One dependent variable (shares) depicts how many shares...

    Started by wilhelm‎, 04-30-2013 03:36 PM
    • Replies: 1
    • Views: 106
    04-30-2013, 04:09 PM Go to last post
  29. [STATA - Lag length criteria]: How can I explain the results?

    Good evening everyone. I got different output from the code: forval i = 1/118 { varsoc Illiq`i', maxlag(10) } that describes AIC,BIC,... lag...

    Started by Pierre‎, 04-29-2013 06:39 PM
    aic, autoregressive, bic, lag, selection
    • Replies: 0
    • Views: 132
    04-29-2013, 06:39 PM Go to last post
  30. Outreg problem with reporting Pseudo-R2 with Quantile regression

    Dear Talk stats users, I need help with reporting the Pseudo-r2 (using outreg2) when doing quantile regressions in stata (Qreg, Stata 12). How...

    Started by Olleolle‎, 04-25-2013 04:34 AM
    • Replies: 4
    • Views: 187
    04-29-2013, 04:27 AM Go to last post
  31. Question on Clarify

    Hello, I'm using Clarify for the first time to get marginal effects for an OLS model I'm using. In general, I'm wondering how to interpret what...

    Started by TheK90‎, 04-28-2013 09:28 PM
    • Replies: 0
    • Views: 97
    04-28-2013, 09:28 PM Go to last post
  32. xtset issues

    Hi, I am new to panel regressions and I have a question regarding xtset in Stata 12. I have tried two different panel datasets where I have been...

    Started by wilhelm‎, 04-26-2013 06:35 AM
    • Replies: 1
    • Views: 130
    04-27-2013, 01:01 AM Go to last post
  33. Multinominal logit model with random effects?

    Hi, I'm working with a panel dataset and analyzing it using a multinominal logit model. Currently I'm using the -mlogit, cluster(...)- command. Is...

    Started by Cemon‎, 04-23-2013 06:56 AM
    • Replies: 6
    • Views: 219
    04-26-2013, 06:52 AM Go to last post
  34. OLS with fixed effects and STATA

    Hi all, Monday I started a topic on estimating OLS with fixed effects using SPSS. That turns out to be impossible. So now I want to do it with...

    Started by niels92‎, 04-23-2013 07:30 PM
    fixed effects, ols, stats, xtreg
    • Replies: 3
    • Views: 209
    04-26-2013, 04:36 AM Go to last post
  35. Blundell-Bond estimation of dynamic panel data in Stata 12

    Hello everyone, For my master's thesis, I need to estimate the following equation with the Blundell-Bond GMM method: Leverage(i,t) =...

    Started by vincents‎, 04-04-2013 09:40 AM
    • Replies: 2
    • Views: 317
    04-25-2013, 06:22 PM Go to last post
  36. xtabond2 suppressing the constant

    Hi all, When using the difference GMM estimator, the constant is differenced out by way of the first-difference transformation. So using the...

    Started by ELMST‎, 04-25-2013 06:18 PM
    arellano-bond, blundell-bond, gmm, system gmm, xtabond2
    • Replies: 0
    • Views: 115
    04-25-2013, 06:18 PM Go to last post
  37. NLSY79 Help - Longitudinal data in STATA

    Hey, guys. I'm trying to use the National Longitudinal Survey Year 1979 data set in a multiple regression model. The data set has data from...

    Started by chickensandllamas‎, 04-24-2013 04:13 PM
    • Replies: 1
    • Views: 174
    04-25-2013, 12:27 AM Go to last post
  38. Need some help with basic STATA hypothesis testing

    Hey, I am completely stuck on this one question. It is really simple and just a hypothesis test using dummy variables but for some reason when I...

    Started by jrghig‎, 04-23-2013 09:40 AM
    • Replies: 12
    • Views: 303
    04-25-2013, 12:23 AM Go to last post
  39. Reshaping dataset

    Hi, I have a dataset that has the following variables: date stock1 stock2 stock3 etc. where the stockprices are recorded for each...

    Started by carmen256‎, 04-24-2013 04:56 AM
    reshape data
    • Replies: 1
    • Views: 147
    04-24-2013, 06:34 AM Go to last post
  40. Pseudo R² for xtlogit

    Hello everybody, I'm currently working with a logistic panel regression with random effects -xtlogit,re-. While I'm able to calculate pseudo R²...

    Started by Cemon‎, 04-24-2013 02:38 AM
    pseudo r², xtlogit re
    • Replies: 1
    • Views: 185
    04-24-2013, 03:07 AM Go to last post
  41. checking proportional hazards assumption with survey data

    Hello, I am conducting a survival analysis using survey data in STATA. Does anyone have tips for checking the assumption of proportional hazards...

    Started by alxchang‎, 04-22-2013 05:42 PM
    • Replies: 0
    • Views: 114
    04-22-2013, 05:42 PM Go to last post
  42. Euclidean distance problem

    Hey all, So this should be an easy solution, but for the life of me I cannot think how to get this to work. I need to figure out how to compute...

    Started by nix‎, 04-18-2013 07:00 PM
    • Replies: 1
    • Views: 166
    04-18-2013, 09:05 PM Go to last post
  43. Problem converting variable (from string to string)

    In order to merge to datasets using a unique ID and a variable specifying time (e.g. 2006Q1) I need to convert a variable in one of the datasets....

    Started by robin772‎, 04-18-2013 06:12 AM
    • Replies: 1
    • Views: 165
    04-18-2013, 05:05 PM Go to last post
  44. creating a non-smoothed graph of the hazard function

    Hi guys! I'm working on a duration model and I'd like to create a graph of the hazard function, but using the command "sts graph haz" I get a...

    Started by giulietta‎, 04-17-2013 02:05 PM
    • Replies: 1
    • Views: 127
    04-17-2013, 06:23 PM Go to last post
  45. Constrained Regression! How to impose constraints containing regression coefficients

    Hi, I want to run a constrained linear regression in STATA for the model as follows: constraint 1 (b1) + (b2) + 2*{(b3)}*log_mpce + (b4) = 0,...

    Started by sumitzone2009‎, 04-17-2013 01:06 AM
    • Replies: 1
    • Views: 161
    04-17-2013, 02:04 AM Go to last post
  46. Bootstrap sample from only one variable?

    Is this possible in STATA? When using the ordinary bootstrap command, STATA draw a bootstrap on all variables.

    Started by Englund‎, 04-15-2013 05:22 PM
    • Replies: 2
    • Views: 147
    04-15-2013, 07:16 PM Go to last post
  47. Calculate residuals after VECM

    In the univariate case we can use -predict residual, res- to acquire the residuals after fitting a model. Here's the deal, I cannot find any command...

    Started by Englund‎, 04-15-2013 02:11 PM
    • Replies: 2
    • Views: 179
    04-15-2013, 02:28 PM Go to last post
  48. Marginsplot for categorical by categorical interaction with multiply imputed data

    Hi all, I am trying to use marginsplots to graph a categorical by categorical variable interaction between gender (0 1) and level of drug use (0 1...

    Started by omnibus‎, 04-12-2013 01:38 PM
    interaction, multiple imputation, plots
    • Replies: 2
    • Views: 170
    04-13-2013, 11:04 PM Go to last post
  49. Categorical Predictor and Outcome Variables

    I’m relatively new to stata and have to undertake some questionnaire analysis. I’m interested in whether parental type (3 levels) has an...

    Started by twinny1985‎, 04-12-2013 05:58 AM
    • Replies: 3
    • Views: 200
    04-13-2013, 05:45 AM Go to last post
  50. Mcnemar's test stata

    Hi all, I asked a question in the pre and post test for the same participants. My variable is dichotomous: 1= correct 0= incorrect I want to...

    Started by Marvin85‎, 04-11-2013 09:20 AM
    mcnemar's tes
    • Replies: 5
    • Views: 351
    04-12-2013, 02:04 PM Go to last post
  51. Multiple and joint correspondence analysis (MCA) help for graphs

    Hi, Sorry in advance for my English speaking. I am currently analysing data using a MCA approach with Stata. Does someone know how to get the...

    Started by valerie.briand@gmail.com‎, 04-12-2013 08:33 AM
    mca
    • Replies: 0
    • Views: 140
    04-12-2013, 08:33 AM Go to last post
  52. intra-variable dummy

    Hi guys, my problem is the following: i have a data set that contains info about household (identified by a household ID) and also the people in...

    Started by Ainee‎, 04-11-2013 08:14 AM
    • Replies: 1
    • Views: 110
    04-11-2013, 06:11 PM Go to last post
  53. How to sum observations by month

    Hi everyone, This is probably an easy one for some of you. I have a certain number of events that occur per day, and I want to sum them per month....

    Started by Nicapyke‎, 04-11-2013 04:32 PM
    • Replies: 1
    • Views: 130
    04-11-2013, 06:02 PM Go to last post
  54. Stata rookie - McNemar's chi2

    Hey, I've just got to grips with the basics of Stata (for my dissertation). My tutor asked me to use the command 'mcc' to compare binary variables,...

    Started by ha08255‎, 04-14-2012 10:56 AM
    • Replies: 4
    • Views: 1,062
    04-11-2013, 10:59 AM Go to last post
  55. Instrumental Variable Regression (IVREG2)

    Hi all I am looking to create a instrumental variable regression to look at the impact of banking crisis on income inequality (in particular the...

    Started by ajl0411‎, 04-09-2013 05:24 AM
    • Replies: 4
    • Views: 233
    04-11-2013, 08:37 AM Go to last post
  56. Generate variable that shows the question with the highest correct answers

    hi friends, I asked 25 questions in a test. q1 1=correct 0=incorrect q2 1=correct

    Started by Marvin85‎, 04-10-2013 12:10 PM
    best answer, egen, generate, index, test question
    • Replies: 1
    • Views: 161
    04-10-2013, 06:36 PM Go to last post
  57. xttest0 - Breusch & Pagan Lagrangian multiplier test for random effects

    hi, im doing a dissertation on corporate finance. I have run this xttest0 test in stata and posted my results as an attachment. Could anyone tell...

    Started by Anthony90‎, 04-09-2013 11:05 AM
    • Replies: 0
    • Views: 347
    04-09-2013, 11:05 AM Go to last post
  58. Looking for help! Reshaping my database

    Hello everyone, I am having troubles with reshaping my data. The data currently looks as follows: Firm Variables 1990 1991 1992 etc. x-----1...

    Started by LGilbers‎, 04-07-2013 06:45 AM
    • Replies: 3
    • Views: 286
    04-09-2013, 03:10 AM Go to last post
  59. likelihood ratio test for SUR model in stata?

    Could anyone please tell me how do we do likelihood ratio test for sureg model. For instance i run constrained and unconstrained models with an...

    Started by Sarah0226‎, 04-07-2013 05:39 AM
    • Replies: 3
    • Views: 293
    04-08-2013, 06:08 PM Go to last post
  60. STATA help with variable renaming!

    Hello stata crew, I've encountered a peculiar problem and can't find a good fix. In short, I'm running surveys, exporting the data to excel, and...

    Started by kaio‎, 04-08-2013 09:56 AM
    • Replies: 1
    • Views: 381
    04-08-2013, 06:05 PM Go to last post

+ Post New Thread
Page 1 of 17 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 LastLast

Thread Display Options

Use this control to limit the display of threads to those newer than the specified time frame.

Allows you to choose the data by which the thread list will be sorted.

Order threads in...

Note: when sorting by date, 'descending order' will show the newest results first.

Icon Legend

Contains unread posts
Contains unread posts
Contains no unread posts
Contains no unread posts
More than 15 replies or 300 views
Hot thread with unread posts
More than 15 replies or 300 views
Hot thread with no unread posts
Closed Thread
Thread is closed
Thread Contains a Message Written By You
You have posted in this thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats