1. 10-14-2010
+ Post New Thread
Page 1 of 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... LastLast
Threads 1 to 60 of 1748

Forum: Stata

Stata usage and programming, Stata help

  1. Lightbulb principal component analysis for panel data

    Dear forum members, I have a panel data and i used PCA for make an index with stata, i'm in doubt with this way , stata give me a wrong index!!...

    Started by eli ahmadpour‎, Today 04:05 PM
    • Replies: 0
    • Views: 14
    Today, 04:05 PM Go to last post
  2. Stat/Tranfer Problem opening dataset

    Hello guys, I recently purchased Stat/Transfer, a software that allows to convert SPSS file to Stata files. The transfer went well however when I...

    Started by Marvin85‎, 01-22-2015 03:45 PM
    • Replies: 1
    • Views: 98
    Yesterday, 11:41 PM Go to last post
  3. Lightbulb problem with xtdpdsys

    Hello dear forum members! i have a dynamic panel data and i want to estimate an Simultaneous Equations Model with system gmm and i have 4 equation...

    Started by eli ahmadpour‎, 01-22-2015 03:47 PM
    • Replies: 0
    • Views: 117
    01-22-2015, 03:47 PM Go to last post
  4. Unhappy Output Basic Statistics in Excel via - tabout -

    Hi, I am trying to output in Excel the mean and median of a few variables that we will call var1, var2, var3 etc.. by SECURITY and EVENT_WINDOW,...

    Started by amazon‎, 01-21-2015 10:07 AM
    tabout excel stata export
    • Replies: 1
    • Views: 115
    01-22-2015, 01:47 AM Go to last post
  5. Generating standardized standard errors

    I am testing a structural equation model using Stata. I need to report standardized direct, indirect and total effects with associated standard...

    Started by amsavage‎, 01-19-2015 05:25 PM
    sem, standard errors, standardization, stata
    • Replies: 0
    • Views: 111
    01-19-2015, 05:25 PM Go to last post
  6. Ploting marginal predicted probabilities with gllapred after gllamm

    Dear all, I am trying to plot marginal predicted probabilities after I fit a multilevel logit model with the command gllamm. My model is a...

    Started by Joel Smith‎, 01-19-2015 02:44 PM
    • Replies: 0
    • Views: 80
    01-19-2015, 02:44 PM Go to last post
  7. Help with growth model

    Hi, I have a research question that I am not sure how I can code it in stata. I think I have to use growth model, but not sure how! I appreciate...

    Started by anna_258‎, 01-17-2015 11:08 AM
    • Replies: 0
    • Views: 98
    01-17-2015, 11:08 AM Go to last post
  8. How to replace values of one sample using the values from another sample

    Sorry for the confusion that the title might result, but my question is the following: Suppose I have two samples of observations, say, CPS 2000...

    Started by BTan‎, 01-16-2015 09:09 PM
    • Replies: 0
    • Views: 111
    01-16-2015, 09:09 PM Go to last post
  9. How to obtain standard deviation for COUNT data , while using Survey data and subpopu

    hello all, I have previously posted a question about obtaining SD for mean in survey setting and was able to get answer from statalist(thank you,...

    Started by ritupuri‎, 01-16-2015 07:39 PM
    survey stata
    • Replies: 0
    • Views: 112
    01-16-2015, 07:39 PM Go to last post
  10. Graphing y_hat

    Hi All, I'm a novice user of STATA and seek your help. I have a regression Eg: Y = alpha + beta1 (X1) + beta2 (X1)^2 + beta3 (D1) + Gamma1 (P1)...

    Started by Equate‎, 01-07-2015 02:57 PM
    • Replies: 1
    • Views: 296
    01-15-2015, 06:03 AM Go to last post
  11. Confused with hausman

    Hi all! I ran FE and RE on panel data of 53 countries. Unfortunately, Hausman is not giving proper results and says 'model fitted on these data...

    Started by mahamfurqan‎, 01-14-2015 07:59 AM
    • Replies: 0
    • Views: 110
    01-14-2015, 07:59 AM Go to last post
  12. How to draw restricted cubic splines after logistic regression in Stata 12.1?

    Dear everyone, I would like to draw resticted cubic splines in a cohort study, including OR and 95% CI, after multivariate Logistic regression...

    Started by Keiichi‎, 12-29-2014 09:25 PM
    • Replies: 2
    • Views: 340
    01-07-2015, 04:53 AM Go to last post
  13. Copying observations from t to t+1

    Hello everybody! Could you please help me with the following problem. I have a panel data where individuals "ind" are nested within...

    Started by Slavutich‎, 01-06-2015 07:27 PM
    • Replies: 0
    • Views: 104
    01-06-2015, 07:27 PM Go to last post
  14. Appropriate excel form for panel quarterly data

    Dear all, I hope you are doing well. I am trying to shape an excel sheet in order to be read by Stata (File --> Import). I have quarterly data...

    Started by Kostas‎, 01-06-2015 02:44 PM
    • Replies: 0
    • Views: 84
    01-06-2015, 02:44 PM Go to last post
  15. saving tabstat output

    I have panel data with the cross-section as American states (n=48) and time as years (n=25). I want to want to take the median of the dependent...

    Started by rbsoc‎, 12-31-2014 10:15 AM
    • Replies: 0
    • Views: 256
    12-31-2014, 10:15 AM Go to last post
  16. survey analysis with stata

    Hi I need some guidance. My goal is to test that there is not a difference between two variables, var1 and var2 in a survey. I declared as sample...

    Started by jfca283‎, 12-29-2014 11:03 AM
    • Replies: 0
    • Views: 147
    12-29-2014, 11:03 AM Go to last post
  17. String to numeric (keep real numbers) ignore

    hello friends, I have an ID variable but some observation contain strings. Below is a example of my observations. I tried to used the string,...

    Started by Marvin85‎, 12-15-2014 04:25 PM
    ignore, strong to num
    • Replies: 4
    • Views: 430
    12-19-2014, 12:34 PM Go to last post
  18. hypothesis confirmation

    Hello everyone. I am working on a survey logistic procedure on stata. I have one problem with the GOF test. The only option is an F test for testing...

    Started by Chinchilla‎, 12-13-2014 05:05 PM
    • Replies: 3
    • Views: 326
    12-18-2014, 03:40 AM Go to last post
  19. classification logistic regression

    Hello, I am trying to find a command for the equivalent of "estat classification" after a simple logistic regression. Are there any similar commands...

    Started by Chinchilla‎, 12-17-2014 04:27 AM
    • Replies: 0
    • Views: 136
    12-17-2014, 04:27 AM Go to last post
  20. creating variables

    i want to create variables and i need some help. new variable names are on the left as below. The parent variable is intcov IntCov1 Variable...

    Started by bighush‎, 11-18-2014 09:33 PM
    • Replies: 3
    • Views: 302
    12-15-2014, 06:49 PM Go to last post
  21. STATA - Finance - Portfolio Volatility

    Hi all, I am experiencing difficulties to calculate portfolio volatility each period ("rebalance") given the following variables (enclosed)....

    Started by amazon‎, 12-02-2014 08:36 PM
    • Replies: 2
    • Views: 287
    12-15-2014, 06:46 PM Go to last post
  22. percentages outside the slides

    Hello If got a Pie Chart with a really small slide. Insted of having the percentages inside the slides, I would like to have them outside the Pie...

    Started by roger20‎, 12-11-2014 05:04 AM
    • Replies: 3
    • Views: 214
    12-13-2014, 06:08 PM Go to last post
  23. running simultaneous-equation model using 2 or 3sls

    Dear colleagues I am running simultaneous-equation model consists of the following two equations: Y1 = a+b1 x1 + b2x2 + b3x3 + b4x4 (1) x2 =...

    Started by momo‎, 12-11-2014 12:54 PM
    • Replies: 0
    • Views: 188
    12-11-2014, 12:54 PM Go to last post
  24. Unique combination of variables

    Hi guys I have 15000 observations across 7 variables. I need some help with the code to generate all possible unique combinations of variables....

    Started by excelmac‎, 12-03-2014 02:08 PM
    stata, unique combination, variables
    • Replies: 2
    • Views: 243
    12-08-2014, 10:32 PM Go to last post
  25. Look for partial string on data set?

    Hi Sorry to ask this, but i really don't know how to do this tab var1 if "var2 contains text sea level" I'm not joking. I don't know. Thanks...

    Started by jfca283‎, 12-03-2014 02:20 PM
    • Replies: 1
    • Views: 247
    12-06-2014, 11:23 PM Go to last post
  26. Matrix Multiplication + Save Result by group

    Bonjour a tous, I'm trying to achieve the following multiplication VAR = W*S*W' w: S: s: I have the following variables in Stata:

    Started by amazon‎, 12-06-2014 08:20 PM
    grouped data, matrix multiplication, stata, variance
    • Replies: 0
    • Views: 162
    12-06-2014, 08:20 PM Go to last post
  27. Sample based on 2 stratas/variables

    Hello guys, I have a dataset of 90 observations (health center types). I only need 30% of my cases. I have two stratas/variables (I guess):...

    Started by Marvin85‎, 12-03-2014 03:11 PM
    bsample, sample
    • Replies: 1
    • Views: 209
    12-03-2014, 05:40 PM Go to last post
  28. General doubt. Can i label a string variable?

    Hi I need to label a variable. The problem is that the variable is a string one. I run a loop and i get this error: may not label strings...

    Started by jfca283‎, 12-01-2014 07:00 AM
    • Replies: 3
    • Views: 266
    12-02-2014, 10:32 AM Go to last post
  29. creating a loss dummy variable

    i have to create a loss dummy variable when another variable eg. net income is negative in the current and previous years.And it should be unique for...

    Started by bighush‎, 11-01-2014 11:17 AM
    • Replies: 3
    • Views: 335
    11-30-2014, 03:27 PM Go to last post
  30. Comparing sets of variables measured at 2 time points

    I have 3 categorical variables that were measured at a time point = 1 and then later at a time point = 2. I am interested in trying to summarize...

    Started by oncearunner‎, 10-23-2014 12:07 PM
    • Replies: 2
    • Views: 371
    11-29-2014, 12:34 AM Go to last post
  31. Loop according existance of variable label

    Hi. I'm a bit lost with this. I try to write the label for the varx. But in some of the databases the var label exist and in others doesn't. I...

    Started by jfca283‎, 11-28-2014 03:25 PM
    • Replies: 1
    • Views: 195
    11-28-2014, 10:18 PM Go to last post
  32. 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 05:34 AM
    • Replies: 7
    • Views: 1,927
    11-28-2014, 12:39 AM Go to last post
  33. !missing in two variables

    Hello I ve got panel datas and need to eliminate (!missing) observations. Now the 2 variables have their missings on different observations...

    Started by roger20‎, 11-24-2014 09:33 AM
    • Replies: 1
    • Views: 313
    11-25-2014, 04:00 AM Go to last post
  34. create matrix with rows and columns according to variables length?

    Hi I need to create a loop. The issue is i have 2 variables, X and Y. And both are strings. So, how do i create a matrix with the form J(lengthX,...

    Started by jfca283‎, 11-23-2014 12:18 AM
    • Replies: 3
    • Views: 605
    11-24-2014, 03:26 PM Go to last post
  35. Problem when running the CDSIMEQ in Stata

    Dear All, I am trying to estimate a system of simultaneous equation where one of the endogenous variable is continuous and the other endogenous...

    Started by fayugo‎, 11-21-2014 06:45 AM
    • Replies: 0
    • Views: 1,835
    11-21-2014, 06:45 AM Go to last post
  36. Stacked bar chart, Pre vs Post

    Hi Guys, Basically I have two variables test_pre and test_post. My variables assessed participants self-assessed knowledge using a 5 point liker...

    Started by Marvin85‎, 11-19-2014 05:14 PM
    bar chart, pre post, stacked chart
    • Replies: 2
    • Views: 5,817
    11-20-2014, 07:20 AM Go to last post
  37. Calculate Systematic Risk

    Hi guys, i want to investigate the dividendpolice of german firms. I have a panel data set from 1989 - 2013. I use a logit regression to estimate the...

    Started by Rookery‎, 11-19-2014 11:05 AM
    • Replies: 0
    • Views: 1,659
    11-19-2014, 11:05 AM Go to last post
  38. Hausman test after xtregar negative chi2

    Dear all, I'm performing a Hausman test on panel data to determine whether to choose Random Effects or Fixed Effects for my analysis with AR(1)....

    Started by camino‎, 11-14-2014 10:14 AM
    • Replies: 1
    • Views: 501
    11-17-2014, 03:54 AM Go to last post
  39. scatter is not a twoway plot type

    Hi,I use stata11 to a a scatter commond"scatter api00 enroll".But I can't get a scatterplot.The stata said"scatter is not a twoway plot type".Who can...

    Started by Ken Tran‎, 11-15-2014 12:13 AM
    • Replies: 1
    • Views: 289
    11-16-2014, 04:48 PM Go to last post
  40. Using bysort to drop missing data by group

    Hi, I am new to longitudinal data and could really use some help! I have a data set where some participants are missing variable x data. How can I...

    Started by alxchang‎, 11-13-2014 09:37 AM
    • Replies: 1
    • Views: 202
    11-14-2014, 05:58 AM Go to last post
  41. Heteroskedasticity & Autocorrelation in a random panel data

    Dear communty, I have the question regarding the choice of an appropriate model for panel data with serial autocorrelation and heteroskedasticity...

    Started by funtik‎, 11-13-2014 08:00 PM
    • Replies: 0
    • Views: 194
    11-13-2014, 08:00 PM Go to last post
  42. Including categorical interactions in mi impute passively

    Version: Stata MP 13.0 I wish to impute something like this... mi register imputed a b c d e f mi impute chained (reg, include((d##e)) a b c...

    Started by Mel42‎, 11-12-2014 07:55 AM
    categorical interaction, mi impute
    • Replies: 0
    • Views: 197
    11-12-2014, 07:55 AM Go to last post
  43. Question Solving a system of non-linear equations for a dataset

    I have to find a solution (av, asigma) for the following system if equation: 0 = av*normal( ln(av/debt)+(r+asigma^2/2)*t)/(asigma*sqrt(t) )...

    Started by Finsternis‎, 11-08-2014 12:03 PM
    • Replies: 0
    • Views: 275
    11-08-2014, 12:03 PM Go to last post
  44. create a new variable with data out if another variable under certain conditions

    hello everybody! i want to create a new variable (t_bip1), which should be filled with data from t_. As you can see in the screenshot, i need all t_...

    Started by Lima‎, 11-08-2014 06:09 AM
    • Replies: 0
    • Views: 237
    11-08-2014, 06:09 AM Go to last post
  45. Relating variables within home group

    Hi, I've got a database with information about several different families related to child labor and I need to create variables for the children...

    Started by Vicheu‎, 11-03-2014 11:06 PM
    • Replies: 3
    • Views: 341
    11-07-2014, 03:30 AM Go to last post
  46. Variance decomposition

    Hi I have this two-way fixed effects model: xi:xtreg dep ivar1 ivar2 ivar3 ivar4 i.year,fe vce(robust) I need the variance decomposition...

    Started by stata3‎, 11-07-2014 12:57 AM
    • Replies: 0
    • Views: 153
    11-07-2014, 12:57 AM Go to last post
  47. Time Series Line Plot with Dummy Variable by period

    Hi guys, I have a question regarding how to graph dummy variables. I have a dataset consisting of different firms and different firm years. I have...

    Started by Rookery‎, 10-31-2014 12:18 PM
    • Replies: 4
    • Views: 376
    11-03-2014, 04:02 AM Go to last post
  48. bilateral exchange rate volatility

    I am trying to estimate panel gravity model and need exchange rate volatility between country i and j but i don't know how to do it in Stata !!!...

    Started by SALI‎, 11-02-2014 12:29 PM
    • Replies: 0
    • Views: 162
    11-02-2014, 12:29 PM Go to last post
  49. Import fixed column data help

    Hi all, I am having trouble structuring my data so that I can import it into Stata using "infix". I cannot delimit my data as there are blanks...

    Started by alexalexalex‎, 11-02-2014 09:13 AM
    blanks, data management, import data, stata
    • Replies: 0
    • Views: 166
    11-02-2014, 09:13 AM Go to last post
  50. Line chart Stata

    Hi friends, I need to create a line chart to inform which of our grantees are collecting more surveys. I need a line chart of the total number of...

    Started by Marvin85‎, 10-31-2014 11:54 AM
    line chart
    • Replies: 1
    • Views: 233
    10-31-2014, 03:25 PM Go to last post
  51. Stata help! trying to make any specification for probit

    I am trying to see the relationship between job promotion and several x variables. I recoded Y to promo as 0 and 1 and with x variables I ran...

    Started by boysgd‎, 10-29-2014 02:52 PM
    • Replies: 1
    • Views: 225
    10-30-2014, 07:15 AM Go to last post
  52. "Advanced" use of esttab: delete/insert rules

    I am trying to format some tables that are to be published in the American Economic Review. I usually export tables with esttab in tex code and then...

    Started by luciano‎, 03-22-2012 11:11 AM
    • Replies: 3
    • Views: 2,188
    10-29-2014, 07:00 AM Go to last post
  53. create a time period

    Hello everybody! I have values for prices for each year (price_1998, price_1999 etc), the avarage prices(aprice_1998, aprice_1999..), the marginal...

    Started by Lima‎, 10-28-2014 01:52 PM
    • Replies: 1
    • Views: 250
    10-29-2014, 04:53 AM Go to last post
  54. If statement braces not producing an output

    Hello and thanks for your help, I am fairly new to Stata and am having issues trying to get the following if statement to run. When I run the "if...

    Started by S.Triggs‎, 10-16-2014 12:04 AM
    • Replies: 5
    • Views: 518
    10-21-2014, 03:47 PM Go to last post
  55. regression with Schwert(1989) method.

    I want to genearting Volatility using Schwert(1989) method. I attach equation picture. and R(t) mean IPS rate. D mean seasonal dummy variable. ...

    Started by wawataiji‎, 10-21-2014 11:38 AM
    • Replies: 0
    • Views: 233
    10-21-2014, 11:38 AM Go to last post
  56. SOS: generate a sub-sample with specific criteria (tricky)

    Hi guys I have a problem and I don't Know how to solve it. I have a sample and I would like to create a sub-sample with some specific...

    Started by zaksotiris‎, 10-21-2014 09:20 AM
    • Replies: 0
    • Views: 214
    10-21-2014, 09:20 AM Go to last post
  57. Dropping duplicates with date-specific properties

    Hey guys. I had a question today that I had no idea how to solve. It basically revolves around removing duplicates from a dataset with close to...

    Started by starpen‎, 09-29-2014 06:34 AM
    drop duplicates, duplicated individuals
    • Replies: 2
    • Views: 381
    10-14-2014, 12:13 AM Go to last post
  58. Calculate age in STATA

    I have DOB in MM/DD/YYYY format. The first problem is that some DOBs have a MM/D/YYYY format if the day is a single digit number. The second problem...

    Started by oncearunner‎, 10-07-2014 10:46 AM
    • Replies: 2
    • Views: 459
    10-13-2014, 09:45 PM Go to last post
  59. HELP! Coefplot: how to display only certain variables?

    Hi everyone, I want to use coefplot just to display the coefficients of two categorical variables holding for all the others after a reg. I...

    Started by Filippotto‎, 09-30-2014 04:15 AM
    coefficient, coefplot, regression, stata, vertical graph
    • Replies: 0
    • Views: 370
    09-30-2014, 04:15 AM Go to last post
  60. I'm nesting 3 loops worngly. Can you helmp me?

    Hi. I hope you can find what i'm doing wrong. I'm creating a matrix which is evaluating every cross for two variables: varc(from 1 to 17) and...

    Started by jfca283‎, 09-29-2014 03:55 PM
    • Replies: 0
    • Views: 305
    09-29-2014, 03:55 PM Go to last post

+ Post New Thread
Page 1 of 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 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