1. 10-14-2010
    Views:
    20,297
+ 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 1787

Forum: Stata

Stata usage and programming, Stata help

  1. Generate string from filename

    Hi I'm stuck. I have some files named like this: file_ALP2014_ALP2015 and i need to play with variables in the same database that their names...

    Started by jfca283‎, 04-16-2015 09:05 AM
    • Replies: 2
    • Views: 119
    04-16-2015, 10:07 AM Go to last post
  2. Programming a loop

    Hi, I have this do-file: I would like to programme a loop to apply this do-file to others databases: The name of the others databases...

    Started by pelias2‎, 04-10-2015 08:52 AM
    • Replies: 2
    • Views: 247
    04-13-2015, 10:17 AM Go to last post
  3. Lightbulb Data management

    Hi, I have dta files and It looks like that: ID Disease 1 A 2 A 2 C 2 F 3 B 4 A

    Started by pelias2‎, 04-10-2015 05:28 AM
    • Replies: 4
    • Views: 156
    04-10-2015, 08:38 AM Go to last post
  4. Graph margins - eydx(x1) over (r.X2)

    Hi guys, Ran with a problem when doing my analysis: I am fitting the following logit model: Y= X1##X2##X3 + Xn X1 is a dummy (Year) X2 is...

    Started by PedroR‎, 04-06-2015 05:33 PM
    • Replies: 0
    • Views: 157
    04-06-2015, 05:33 PM Go to last post
  5. Loop files through subdirectories

    Hi i need to enter a directory and his subdirectories to run a instruction. I know how to loop the files that are contained in a folder. For that i...

    Started by jfca283‎, 04-02-2015 06:23 AM
    • Replies: 2
    • Views: 220
    04-02-2015, 08:26 AM Go to last post
  6. Do file stops - freezes

    Hello guys, I am running a stata do file that was working perfectly in the past and now it freezes and does not work properly. It freezes in the...

    Started by Marvin85‎, 03-31-2015 09:51 AM
    do file, freeze
    • Replies: 4
    • Views: 183
    03-31-2015, 07:03 PM Go to last post
  7. generate a variable based on another variable

    Hey guys, one question. I have a variable with company names that repeat themselves for 250 times cause that is the number of days i study. so i have...

    Started by eac13‎, 03-23-2015 02:35 PM
    • Replies: 3
    • Views: 244
    03-31-2015, 07:02 PM Go to last post
  8. Leontief Inverse using stata - mata

    Dear all, We can't manage to generate a Leontief Inverse matrix, below an example. Given for example the following matrix converted from...

    Started by giacomodifo‎, 03-30-2015 04:44 AM
    • Replies: 0
    • Views: 127
    03-30-2015, 04:44 AM Go to last post
  9. Hierarchical Cluster Analyis: Working with Groups

    Hello everybody! I am not sure if you provide me an answer to my questions, but I am pretty desperate and would be glad of any help I can get! I...

    Started by KathiStata‎, 03-27-2015 09:13 AM
    cluster, groups, hierarchical method
    • Replies: 1
    • Views: 165
    03-27-2015, 09:45 AM Go to last post
  10. Latent Class Analysis with Stata

    Hi, Have anyone used Stata for Latent Class Analysis? I want to estimate willingness to pay with it, but I'm not sure it is possible with this...

    Started by jsuazo‎, 06-14-2013 10:55 AM
    2 Pages
    1 2
    lca, stata
    • Replies: 19
    • Views: 8,686
    03-26-2015, 04:02 PM Go to last post
  11. interactions not allowed

    i am using a fixed effects model with log of wage as the dependent variable when i try xi: xtreg logwage i.d08##c.yrschool exp2 married, i(id)...

    Started by Alexander8‎, 03-25-2015 08:56 PM
    interaction, panel fixed effects, stata, stata 12
    • Replies: 1
    • Views: 153
    03-25-2015, 11:15 PM Go to last post
  12. Three way anova for repeated measure

    Sorry for the double post as I already posted this on the biostat section but it is indeed more appropriate to be posted here! Hi all, I am...

    Started by Ralph84‎, 03-25-2015 04:46 AM
    • Replies: 0
    • Views: 134
    03-25-2015, 04:46 AM Go to last post
  13. Need help interpreting random-effects output

    Attached is the output I received in Stata for my random-effects model. I have three time-invariant variables (WS, WRLURI, UA) and three time-varying...

    Started by kriscrosssss‎, 03-22-2015 06:53 PM
    • Replies: 1
    • Views: 176
    03-22-2015, 06:54 PM Go to last post
  14. "testparm" for the time fixed effect

    I am using the panel data (year and sic). After running Hausman test, the results suggest that the fixed effect model is appropriate. And then I...

    Started by jxy9137‎, 03-19-2015 02:57 PM
    • Replies: 0
    • Views: 167
    03-19-2015, 02:57 PM Go to last post
  15. mixed logit model; coefficient for each attribute

    Hello all, I am new to the forum and looking forward to talking with all of you, and hopefully at some stage I will be able to help someone but...

    Started by Alan McMichael‎, 03-13-2015 05:31 AM
    • Replies: 1
    • Views: 288
    03-13-2015, 10:25 AM Go to last post
  16. Help with GEE

    Hello! For a work project, I need to analyze repeated measures data using GEE, using STATA. I am a bit clueless. I have found some resources and...

    Started by alanend‎, 03-11-2015 02:12 PM
    • Replies: 3
    • Views: 249
    03-12-2015, 12:31 PM Go to last post
  17. Help with hazard function plot

    Hi, I'm looking for help with hazard function plot. Sample of dataset of 1200 obs: ID Age Drugduration Hypertension Event EventDay Censored...

    Started by biscodyl‎, 03-12-2015 11:11 AM
    hazard function, hazard rate, stata, stcox
    • Replies: 0
    • Views: 116
    03-12-2015, 11:11 AM Go to last post
  18. Logit regression with time-series data

    Hi! I want to use logit regression whit lags of the independent variables. Now, I was told I need to use time fixed effects for this (even though I...

    Started by Lars001‎, 03-09-2015 05:26 AM
    • Replies: 0
    • Views: 222
    03-09-2015, 05:26 AM Go to last post
  19. how to save regression results in stata

    I need to save regression results in Stata, Indeed I've already run a multiple sets of regressions without having to retype the command each time...

    Started by AMAELLE‎, 03-07-2015 11:13 AM
    • Replies: 0
    • Views: 218
    03-07-2015, 11:13 AM Go to last post
  20. Counting days

    Dear everyone I would like to count total number of days between two dates in this format "dd/mm/yyyy" , how do I tell stata that it is calendar...

    Started by Aleco‎, 03-07-2015 09:14 AM
    • Replies: 0
    • Views: 155
    03-07-2015, 09:14 AM Go to last post
  21. Formatting into time series data?

    I am trying to format my date parameter so that STATA recognizes it as time series parameter. The format is the most basic of form: 2000, 2001, 2002...

    Started by Tony123‎, 03-03-2015 01:34 PM
    • Replies: 11
    • Views: 354
    03-04-2015, 09:47 AM Go to last post
  22. Heckman Selection for Multinomial Outcomes

    I have found a solution that addresses my questions about heckman adjustment for categorial outcomes.

    Started by Chris86‎, 03-02-2015 10:19 AM
    • Replies: 0
    • Views: 177
    03-02-2015, 10:19 AM Go to last post
  23. Count values of a variable based on another variable

    How can I count the number os Grantees that have used the ipad to collect participants information. In this case, 2 grantees CA0083 and CA0214 used...

    Started by Marvin85‎, 02-19-2015 05:43 PM
    count, count if
    • Replies: 4
    • Views: 389
    02-21-2015, 06:44 AM Go to last post
  24. Random effect model report R2 or chi2

    What is important to report in a random effect model? R2: within, between, overall, or Wald chi2? The thing is that when adding a variable, I find...

    Started by luyinxi‎, 02-20-2015 04:25 AM
    • Replies: 0
    • Views: 129
    02-20-2015, 04:25 AM Go to last post
  25. Using bcal function

    Hi all. I am a total noob for asking this, but even though Ive read all statacorp has to offer on the subject, I can not get the bcal function to...

    Started by statkinglegend‎, 02-19-2015 04:38 AM
    • Replies: 0
    • Views: 155
    02-19-2015, 04:38 AM Go to last post
  26. first -difference command on STATA

    I have a mcor panel for about 40 countries for 24 years .I want to take the first -difference for a variable for each country's time series. Do you...

    Started by abc‎, 12-17-2013 07:44 AM
    • Replies: 7
    • Views: 16,596
    02-16-2015, 08:14 AM Go to last post
  27. generate new var from several string variables

    I have 10 string variables (imp1, imp2, ..., imp10). I want to generate only one variable which summarizes the content of the 10. I used the...

    Started by andik‎, 02-14-2015 11:00 PM
    • Replies: 1
    • Views: 258
    02-15-2015, 09:26 PM Go to last post
  28. Create a variable based on a hierarchy

    Hello friends, I have a dataset where each services offer by providers is in one row. However my goal is that each provider represents one row. ...

    Started by Marvin85‎, 02-13-2015 01:42 PM
    reshape
    • Replies: 0
    • Views: 224
    02-13-2015, 01:42 PM Go to last post
  29. Reshape, collapse, restructure

    Hello guys, These are my variables: GranteeID Funding= Funding type there are 4 funding types (a,b,c,d) ProviderID=provider of the services...

    Started by Marvin85‎, 02-12-2015 09:59 AM
    collpase, reshape
    • Replies: 1
    • Views: 214
    02-13-2015, 09:13 AM Go to last post
  30. egen count only but unique values

    Hello, Below is how my dataset looks like: GranteeID ProviderID 11 11 12 11 26 27 78 27 78 27

    Started by Marvin85‎, 02-12-2015 04:01 PM
    count unique values, egen count, unique
    • Replies: 0
    • Views: 214
    02-12-2015, 04:01 PM Go to last post
  31. Learning Stata - Variables

    Hi, This is my first post on here and learning Stata although been working with it for some time but only as a user and not in a programming...

    Started by IanB‎, 02-11-2015 02:13 PM
    • Replies: 0
    • Views: 214
    02-11-2015, 02:13 PM Go to last post
  32. Create an index with the PCA in Stata 11 from the Demographic and Health Survey

    Dear all, I am a new user. I am writing my Master's thesis and as a part of it I am analyzing the data from the Demographic and Health Surveys...

    Started by lillaus‎, 11-09-2013 11:31 AM
    • Replies: 1
    • Views: 1,588
    02-11-2015, 08:31 AM Go to last post
  33. Show all variable label

    I am just running frequency tables but I need to see the entire variable label. stata only give me a portion of the variable label when it is too...

    Started by Marvin85‎, 02-02-2015 12:39 PM
    var label
    • Replies: 2
    • Views: 300
    02-10-2015, 04:19 PM Go to last post
  34. Use of holdout cases generated in SPSS in STATA

    I am working on consumer preferences for fish, using conjoint analysis. My experimental design was generated in spss using orthogonal design, but my...

    Started by Edith Gondwe‎, 02-10-2015 07:22 AM
    conjoint analysis, holdout cases, spss, stata
    • Replies: 0
    • Views: 196
    02-10-2015, 07:22 AM Go to last post
  35. Fama Macbeth regression help

    Dear reader, We are stuck with performing a Fama Macbeth regression in STATA. The following sums up our steps, and where we got stuck. Please see...

    Started by Dan-14‎, 02-09-2015 06:08 AM
    • Replies: 0
    • Views: 226
    02-09-2015, 06:08 AM Go to last post
  36. Question a few questions for th weekend

    hello, Whenever im trying to use acprplot or towway commands I receive this message, can someone help me with it: (note: scheme s2color not...

    Started by gidlin1‎, 02-06-2015 11:51 AM
    • Replies: 0
    • Views: 215
    02-06-2015, 11:51 AM Go to last post
  37. Having problem with (if and else if) STATA syntax

    Dear Members, I am having problem with using (if and else if ) STATA command using the following logic. If variable b>c and b ~=a and a=c,...

    Started by SSue‎, 02-03-2015 12:49 PM
    • Replies: 0
    • Views: 272
    02-03-2015, 12:49 PM Go to last post
  38. How to extend limit of local/tokenize?

    Dear all, I have a problem in the implementation of the user written Tetrad Method. There must be some problem with the limit of local or...

    Started by KarinKlee‎, 02-02-2015 04:44 AM
    • Replies: 0
    • Views: 213
    02-02-2015, 04:44 AM Go to last post
  39. Constrained coefficients in a VAR model

    I have been trying to find out how to constrain coefficients in a VAR model. In a particular model, I need the coefficients of the lags to sum to...

    Started by darth.gnosus‎, 02-01-2015 07:50 PM
    constrained var
    • Replies: 0
    • Views: 170
    02-01-2015, 07:50 PM Go to last post
  40. Latent Class Analysis with Stata

    Hi I have succesfully installed the stata LCA plugin. But I am not able to do the analysis in my dataset. can anyone assist me how make proper data...

    Started by duttamili‎, 01-30-2015 12:49 PM
    • Replies: 0
    • Views: 40
    01-30-2015, 12:49 PM Go to last post
  41. any number at the end of string extraction

    Hi guys, I need to extract the number at the end of a string variable. The problem is that there are also number at the beginning of the string. ...

    Started by Marvin85‎, 01-29-2015 09:52 AM
    string
    • Replies: 0
    • Views: 203
    01-29-2015, 09:52 AM Go to last post
  42. Covariance matrix from DCC-MGARCH

    Hi. Is there any way to display conditional covariance matrix obtained from estimation through DCC-MGARCH model? Model has following form H= DRD and...

    Started by lucychix‎, 01-27-2015 05:25 PM
    • Replies: 0
    • Views: 204
    01-27-2015, 05:25 PM Go to last post
  43. 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‎, 01-26-2015 03:05 PM
    • Replies: 2
    • Views: 379
    01-27-2015, 05:18 AM Go to last post
  44. 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 02:45 PM
    stat.transfer
    • Replies: 1
    • Views: 217
    01-25-2015, 10:41 PM Go to last post
  45. 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 02:47 PM
    • Replies: 0
    • Views: 259
    01-22-2015, 02:47 PM Go to last post
  46. 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 09:07 AM
    tabout excel stata export
    • Replies: 1
    • Views: 259
    01-22-2015, 12:47 AM Go to last post
  47. 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 04:25 PM
    sem, standard errors, standardization, stata
    • Replies: 0
    • Views: 233
    01-19-2015, 04:25 PM Go to last post
  48. 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 01:44 PM
    • Replies: 0
    • Views: 264
    01-19-2015, 01:44 PM Go to last post
  49. 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 10:08 AM
    • Replies: 0
    • Views: 213
    01-17-2015, 10:08 AM Go to last post
  50. 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 08:09 PM
    • Replies: 0
    • Views: 229
    01-16-2015, 08:09 PM Go to last post
  51. 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 06:39 PM
    survey stata
    • Replies: 0
    • Views: 208
    01-16-2015, 06:39 PM Go to last post
  52. 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 01:57 PM
    • Replies: 1
    • Views: 728
    01-15-2015, 05:03 AM Go to last post
  53. 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 06:59 AM
    • Replies: 0
    • Views: 406
    01-14-2015, 06:59 AM Go to last post
  54. 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 08:25 PM
    • Replies: 2
    • Views: 583
    01-07-2015, 03:53 AM Go to last post
  55. 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 06:27 PM
    • Replies: 0
    • Views: 203
    01-06-2015, 06:27 PM Go to last post
  56. 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 01:44 PM
    • Replies: 0
    • Views: 182
    01-06-2015, 01:44 PM Go to last post
  57. 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 09:15 AM
    • Replies: 0
    • Views: 420
    12-31-2014, 09:15 AM Go to last post
  58. 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 10:03 AM
    • Replies: 0
    • Views: 262
    12-29-2014, 10:03 AM Go to last post
  59. 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 03:25 PM
    ignore, strong to num
    • Replies: 4
    • Views: 618
    12-19-2014, 11:34 AM Go to last post
  60. 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 04:05 PM
    • Replies: 3
    • Views: 463
    12-18-2014, 02:40 AM 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