1. Announcement:
    Want access to a chatbox?
    Dason ‎(Devorador de queso)
+ Post New Thread
Page 1 of 33 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 1953

Forum: Stata

Stata usage and programming, Stata help

  1. Exclamation Factor Analysis (categorical variables)

    Hi everyone, I need to run a factor analysis on a few nominal variables. They have no defined order, therefore, I cannot use polychoric...

    Started by Mae.ae‎, Yesterday 11:43 AM
    categorical vairable, data analysis, factor, factor analysis, stata help
    • Replies: 0
    • Views: 69
    Yesterday, 11:43 AM Go to last post
  2. Gibbon Shanken Ross F Test

    Hi everyone, I'm trying to do GRS-F test in stata and test requires the data in wide format. I tried to 'xpose' and 'rehape' commands, the dates...

    Started by ironics‎, 10-09-2017 11:52 AM
    • Replies: 0
    • Views: 687
    10-09-2017, 11:52 AM Go to last post
  3. Regress data by industry by year

    I regressed data by industry by year as following commands: . xtset code1 year panel variable: code1 (unbalanced) time variable:...

    Started by Jack Kitiwong‎, 10-03-2017 10:24 AM
    • Replies: 0
    • Views: 386
    10-03-2017, 10:24 AM Go to last post
  4. 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 +...

    Started by cg78ithaca‎, 09-08-2017 06:44 AM
    • Replies: 0
    • Views: 531
    09-08-2017, 06:44 AM Go to last post
  5. Command outreg2 not working anymore

    Hello I try to do the following command, written below, with -outreg2- but Stata always says that -outreg2- is an unrecognized command I...

    Started by Maastricht2006‎, 05-07-2012 06:52 PM
    • Replies: 2
    • Views: 16,491
    08-11-2017, 02:26 AM Go to last post
  6. legend kdensity

    I am trying to label my kdensity plots, how do i please go about them? and what is the legend in kdensity please. Thank you.

    Started by David1qaz‎, 08-02-2017 05:40 AM
    • Replies: 0
    • Views: 470
    08-02-2017, 05:40 AM Go to last post
  7. Tidy way to generate a new variable based on information from many other variables?

    Hi All, Suppose I have a set of variables {x1, x2, x3, x4, x5, x6, x7, x8...}. I would like to generate a new variable that takes a value of 1 if...

    Started by Nickmpco‎, 07-22-2017 02:56 PM
    • Replies: 0
    • Views: 476
    07-22-2017, 02:56 PM Go to last post
  8. Red face 'egen' command: Does Stata select the right level from an attribute?

    Im doing my Master thesis in Hybrid Choice model with the example of a fitness center. My dataset has 81 respondents who have to choose 12 times...

    Started by nmarti222‎, 07-19-2017 05:26 PM
    • Replies: 0
    • Views: 277
    07-19-2017, 05:26 PM Go to last post
  9. Generate a variable

    Hello Everyone, I am fairly new to STATA and want to generate a new variable that captures the number of active members in a household. How do i...

    Started by David1qaz‎, 07-19-2017 08:52 AM
    generate new variable
    • Replies: 0
    • Views: 314
    07-19-2017, 08:52 AM Go to last post
  10. Question How to draw cubic splines after Cox regression in Stata 11.1?

    Hi everyone:), In a cohort study, I would like to draw cubic splines, including HR and 95% CI, after Cox regression adjusted for age and sex. Yet,...

    Started by xiaoyanhuang‎, 11-10-2011 03:10 PM
    • Replies: 12
    • Views: 29,094
    07-06-2017, 09:11 AM Go to last post
  11. Request for advice: sample size for 3 arm trial with binary outcome

    Hello I have binary outcome (success & failure). Can someone advise me how can I compute sample size for 3 arm trial comparing 3 interventions....

    Started by ndphysio‎, 06-29-2017 10:34 AM
    2 Pages
    1 2
    • Replies: 15
    • Views: 1,194
    07-03-2017, 08:46 PM Go to last post
  12. Omitting binary combinations in marginsplot

    Hello! I am interacting a binary independent variable (x) on two moderating binary moderating variables (y, z). margins, at(x = (0 1) y = (0...

    Started by elizabethr‎, 06-30-2017 07:23 AM
    binary variables, marginsplot, moderation
    • Replies: 1
    • Views: 1,104
    07-01-2017, 01:37 AM Go to last post
  13. 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...

    Started by Csn‎, 06-22-2017 09:35 PM
    extrapolation, stata, yhat
    • Replies: 1
    • Views: 516
    06-23-2017, 01:15 AM Go to last post
  14. Question 'mixlogit' and 'gmnl' commands not working with binary dataset

    Hello, My thesis is about Hybrid choice and multinomial logit. Im using both commands 'mixlogit' and 'gmnl' in Stata for a dataset that: -...

    Started by nmarti222‎, 06-19-2017 04:08 PM
    • Replies: 0
    • Views: 322
    06-19-2017, 04:08 PM Go to last post
  15. Calculating Downside Beta with daily returns

    Dear Stata community, I am desperate for help regarding Stata, since I am a total beginner and not sure how I am supposed to handle this problem....

    Started by KSchmeisser‎, 06-16-2017 06:30 AM
    • Replies: 0
    • Views: 486
    06-16-2017, 06:30 AM Go to last post
  16. Regression discontinuity plots

    Hi everybody! I am running a regression discontinuity design and I am struggling to get plots of the discontinuity, which are meaningful or at least...

    Started by IlCreatore‎, 06-10-2017 08:31 AM
    • Replies: 5
    • Views: 968
    06-11-2017, 07:08 AM Go to last post
  17. Case match study

    I'm using Stata. I have 2 groups, one received new pain medication and the other didn't because they refused. I monitored their pain and other stuff....

    Started by TraumaticFun‎, 06-08-2017 11:34 PM
    stata 13
    • Replies: 4
    • Views: 727
    06-09-2017, 12:11 PM Go to last post
  18. circular statistics

    Dear all, I am doing study on hours of the day, ie. whether a particular hour of a day (00:00, 01:00, etc) have more death than other hours in a...

    Started by bestmic‎, 05-08-2017 06:23 AM
    • Replies: 0
    • Views: 1,497
    05-08-2017, 06:23 AM Go to last post
  19. Mixed ANOVA Code Help

    Hi all! I have a design with a N of 97 (55 people in one group and 42 in the other). I am interested in the effects of an intervention vs. an...

    Started by LucidMind‎, 05-04-2017 01:24 PM
    • Replies: 0
    • Views: 981
    05-04-2017, 01:24 PM Go to last post
  20. plotting/grouping variable in scatter plot

    I am a newbie with STATA (and SPSS) but: I've plotted a scatter plot to check for heteroscedasticity (rvfplot) and now I want the 'plots' to have...

    Started by Jazz3‎, 04-24-2017 07:33 AM
    • Replies: 0
    • Views: 1,112
    04-24-2017, 07:33 AM Go to last post
  21. Mann Whitney u test for sample with unequal sample sizes

    Hi I have two samples with unequal sample sizes. Sample 1 have n=90 and sample 2 with n =50. Can I use Mann Whitney u test for comparing these two...

    Started by sk2‎, 04-22-2017 12:35 PM
    • Replies: 1
    • Views: 1,716
    04-22-2017, 03:29 PM Go to last post
  22. Lightbulb Principal component analysis to group items for two different countries

    Hi guys, We are two master thesis students doing our thesis about craft beer. We are performing a principal component analysis to group items from...

    Started by Sidsel Woodley‎, 04-15-2017 11:03 AM
    pca analysis
    • Replies: 0
    • Views: 919
    04-15-2017, 11:03 AM Go to last post
  23. Comparing fixed effects coefficients between two groups

    Dear all, I have estimated a fixed effect panel regression model for two groups in my data set. And I want to test if the coefficients are...

    Started by a_dabch‎, 04-14-2017 02:25 PM
    • Replies: 0
    • Views: 1,111
    04-14-2017, 02:25 PM Go to last post
  24. discrete time survival analysis

    I would greatly appreciate if you could let me know how to do discrete time survival analysis with time varying covariates. Some part of my data set...

    Started by shebrahimi‎, 04-04-2017 08:31 AM
    discrete-time, survival analysis
    • Replies: 0
    • Views: 1,463
    04-04-2017, 08:31 AM Go to last post
  25. To convert sas code to stata code

    REQUEST PROFESSIONAL HELP (with financial remuneration for your time) TO CONVERT SAS CODE TO STATA CODE Hello All, I am seeking professional help...

    Started by anwar‎, 04-02-2017 07:44 PM
    sas stata
    • Replies: 1
    • Views: 1,405
    04-03-2017, 10:53 PM Go to last post
  26. multilevel random effects model

    I want to look at the change in the percentage of income savings measured in dollars using repeated measures data for older adults. I want to compare...

    Started by leonedelman‎, 03-23-2017 07:18 PM
    linear growth curve., multilevel, random effects
    • Replies: 0
    • Views: 1,714
    03-23-2017, 07:18 PM Go to last post
  27. Age Adjusted Incidence Rates Using Poisson Regression

    Hello, I am not sure how to calculate age-adjusted incidence rates using poisson regression. I am comparing injuries for children at two schools,...

    Started by hannahlibby‎, 03-21-2017 05:57 PM
    adjustment, poisson regression
    • Replies: 0
    • Views: 1,979
    03-21-2017, 05:57 PM Go to last post
  28. I can't run ado. Message about wrong adopath.

    I installed this package Menu-driven X-12-ARIMA seasonal adjustment in Stata And i also installed the x12a64 package on my PC. Its location is...

    Started by jfca283‎, 04-04-2014 09:55 AM
    • Replies: 4
    • Views: 11,944
    03-11-2017, 02:43 PM Go to last post
  29. How to: xtabond2

    Hello everyone, Me and my group (MSc students) are working on a project on inequality and growth. We have a panel dataset and want to perform...

    Started by Chrysa Pal‎, 03-11-2017 11:28 AM
    • Replies: 0
    • Views: 1,536
    03-11-2017, 11:28 AM Go to last post
  30. Arellano - Bond estimation: Selection between endogenous and predetermined variables

    Dear colleagues, I hope everything is well. I am running Arellano-Bond estimation (xtabond2) and I would like to ask about the selection of...

    Started by Kostas‎, 03-06-2017 07:39 AM
    • Replies: 0
    • Views: 1,548
    03-06-2017, 07:39 AM Go to last post
  31. Running sum

    Dear All, I have the following dataset *********************************** clear input rssd9001_bk1 rssd9001_bk2 year dealid obs...

    Started by zaksotiris‎, 03-05-2017 07:56 AM
    • Replies: 0
    • Views: 1,345
    03-05-2017, 07:56 AM Go to last post
  32. Cox regression time dependent effects

    I have developed a multivariable Cox model including variables associated with mortality using Stata 14.1. I identified a time dependent effect...

    Started by Maddy M‎, 02-23-2017 11:25 AM
    • Replies: 0
    • Views: 2,262
    02-23-2017, 11:25 AM Go to last post
  33. 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...

    Started by Melih‎, 02-18-2017 10:49 AM
    • Replies: 0
    • Views: 1,914
    02-18-2017, 10:49 AM Go to last post
  34. 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:...

    Started by hayley‎, 02-09-2017 07:37 AM
    nestec case-control study, stata, sttocc
    • Replies: 0
    • Views: 2,572
    02-09-2017, 07:37 AM Go to last post
  35. Loops and Preserve

    I have this piece of code: gen graph =. preserve forvalues v = 10(1)12 { replace graph = `v' drop if sales`v' == 0 | sales`v' ==. |...

    Started by minnari‎, 01-24-2017 08:28 PM
    • Replies: 0
    • Views: 3,269
    01-24-2017, 08:28 PM Go to last post
  36. How can I calculate the area of ROC curve of a Cox model?

    I have created a Cox regression model on a dataset. Now I want to test its performance with the ROC curves, but I don't find any command in stata to...

    Started by Lore88x‎, 11-16-2012 09:19 AM
    • Replies: 4
    • Views: 11,277
    01-09-2017, 10:54 PM Go to last post
  37. About stci command

    Dear experts, After using stci command, . stci if factorA==0, by(factorB) failure _d: pfsevent analysis time _t: ...

    Started by bestmic‎, 01-02-2017 11:22 AM
    • Replies: 0
    • Views: 3,800
    01-02-2017, 11:22 AM Go to last post
  38. Recursive Partitioning in Stata

    Dear all expert, I am going to review the survival of a group of cancer patients. I would like to explore the potential use of recursive...

    Started by bestmic‎, 12-20-2016 11:42 AM
    • Replies: 2
    • Views: 4,165
    01-02-2017, 09:01 AM Go to last post
  39. Median Survival after multivariate Kaplan Meier Analysis

    Dear experts, I am a newbie. I am performing an KM analysis and obtain the KM curve by the followings: stcox outcome factorA factorB...

    Started by bestmic‎, 01-02-2017 08:57 AM
    • Replies: 0
    • Views: 2,063
    01-02-2017, 08:57 AM Go to last post
  40. 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...

    Started by TruroJP‎, 12-02-2016 05:26 PM
    code, regression, regression analysis, stata, stata 14
    • Replies: 0
    • Views: 3,783
    12-02-2016, 05:26 PM Go to last post
  41. Meta-analysis of diagnostic test using MCMC

    Hi. Is there some good hands-on tutorial about running MCMC analysis for the meta-analysis of diagnostic tests? Is it inbuilt STATA Bayesian analysis...

    Started by Vlajkony‎, 07-16-2016 07:42 PM
    diagnostic test, mcmc, mcmcglmm, meta-analysis
    • Replies: 8
    • Views: 5,280
    11-23-2016, 02:01 AM Go to last post
  42. Hod do I display raw data from bootstrap result in Stata

    Dear all, I have been given the required code to create a bootstrap analysis of the difference in costs between two groups. I now need to see the...

    Started by CE479‎, 10-01-2016 02:34 AM
    • Replies: 1
    • Views: 3,833
    10-03-2016, 03:29 AM Go to last post
  43. gen newvar "3+"

    Amateur stata user here. I have created a new variable ("traumas") that is meant to have categories "%reporting" 0, 1, 2, or 3+ health conditions...

    Started by nazmi1‎, 10-02-2016 08:11 PM
    • Replies: 0
    • Views: 3,077
    10-02-2016, 08:11 PM Go to last post
  44. How to keep omitted categorical variable on clogit model??

    Currently I am doing choice experiment modelling using conditional logistic model. I am treating all of my attributes as categorical variables....

    Started by ari raka‎, 09-23-2016 07:14 AM
    categorical, choice experiment, clogit, omitted variables, stata 14
    • Replies: 1
    • Views: 3,301
    09-23-2016, 07:44 AM Go to last post
  45. Find corresponding value to extreme score

    Hi, I have data that look something like: id score1 score2 score3 year1 year2 year3 5 90 42 64 2000 2001 2002...

    Started by leonedelman‎, 09-20-2016 06:08 PM
    • Replies: 0
    • Views: 4,011
    09-20-2016, 06:08 PM Go to last post
  46. Graphics of Time Series (tsset command isn't working due to repeated time values)

    Hey everyone, I have a question regarding the creation of graphics for time series. I have two rows with one being the study subject ( 1...

    Started by Sophie Hoffmann‎, 09-13-2016 09:00 AM
    graph, graphics, line graph, time series
    • Replies: 0
    • Views: 3,057
    09-13-2016, 09:00 AM Go to last post
  47. Thumbs up To computing residuals and predicting values

    Goodafternoon, I am trying to compute residuals. In the first time, I do my regression such as : regress v1 v2 v3 v4 v5 pays_encode1...

    Started by Charlotte63‎, 09-12-2016 08:47 AM
    • Replies: 0
    • Views: 2,310
    09-12-2016, 08:47 AM Go to last post
  48. Question Help needed!!!How to write STATA code to count the number for the following question?

    I have 5 variables (a1,a2,a3,a4,a5), all of which are categorical and coded as 0=no, 1=yes,98=refuse to report, 99=unknown. I need to calculate the...

    Started by belindalimm‎, 09-07-2016 12:23 AM
    • Replies: 0
    • Views: 2,253
    09-07-2016, 12:23 AM Go to last post
  49. using wild card for matching string variables

    Hi, I have created a string (pattern) variable containing 0 and 1. For example, a string pattern 0000000011 means the person appears in 10 years of...

    Started by Ujjwal K Das‎, 08-15-2016 03:16 AM
    stata 13, string variable
    • Replies: 0
    • Views: 3,941
    08-15-2016, 03:16 AM Go to last post
  50. String: Pull characters before "-"

    Hi guys, I have a string variable that looks something like this: MMDC-6MA. I need to extract the first letters before the sign "-", So I need...

    Started by Marvin85‎, 08-04-2016 05:13 PM
    • Replies: 0
    • Views: 2,726
    08-04-2016, 05:13 PM Go to last post
  51. Conditional multinomial in STATA - similar to hospital choice models

    Hello, I am having a card time figuring out which conditional logit test to run, and how to structure my data. The set-up is: I am trying to...

    Started by dpac‎, 08-03-2016 03:54 PM
    • Replies: 0
    • Views: 2,675
    08-03-2016, 03:54 PM Go to last post
  52. mean-test

    Dear colleagues, Im trying to run a mean test (ttest) for the variable satisfaction with life by neighborhoods, however Im considering 3...

    Started by Barreto‎, 07-20-2016 06:50 PM
    • Replies: 1
    • Views: 3,714
    07-20-2016, 07:00 PM Go to last post
  53. Granger Causality and Heteroskedasticity

    Hello! My name is Magdalena and I have the following problem; I have daily returns of 60 firms from the year 2000 to 2015. My aim is to test for...

    Started by magdalenag‎, 07-11-2016 11:51 AM
    granger, heteroskedasticity, stata
    • Replies: 1
    • Views: 3,216
    07-11-2016, 01:54 PM Go to last post
  54. switch x and y axis in a dot graph

    Hello I am new to this forum and stata, but I tried really hard to construct a special dot graph. It would be great if you could help me. I...

    Started by Olivia2‎, 07-03-2016 09:58 AM
    • Replies: 0
    • Views: 2,872
    07-03-2016, 09:58 AM Go to last post
  55. groups in xtmixed

    Hi all Having some issues with Stata when running xtmixed. The main issue being the number of groups (in initial Group Variable table) is not what...

    Started by gy13her‎, 06-27-2016 07:35 AM
    multilevel models, stata
    • Replies: 0
    • Views: 2,831
    06-27-2016, 07:35 AM Go to last post
  56. Labelling dummy variables with underlying variable names

    Hey there, I'm very new to Stata and fairly certain this has a simple solution but i don't seem to find it. I have a Dataset with 200 different...

    Started by Chris2291‎, 06-22-2016 09:48 AM
    • Replies: 0
    • Views: 3,080
    06-22-2016, 09:48 AM Go to last post
  57. Bar graph and box-and-whisker plot sorted over binary variable

    Hi, I have a dataset that looks like that below. I want to create graphs like the example below: The variable names var1-var4 in my...

    Started by teapot‎, 06-21-2016 03:00 PM
    • Replies: 0
    • Views: 3,130
    06-21-2016, 03:00 PM Go to last post
  58. Estimating treatment effect using movestay command

    Hello, I want to use the movestay command in Stata but my data is complicated and Im unsure how to proceed. I would like to estimate the...

    Started by MichielvanRossum‎, 06-05-2016 08:27 AM
    movestay, stata, switching regression
    • Replies: 1
    • Views: 4,770
    06-08-2016, 11:09 AM Go to last post
  59. Write an equation in mata format

    Dear stata users, I am trying to setup the following equation in mata format: C1 + C2*((lnx)^2- C3)+ C4* ((lnx)^2*lnx- C5) I have attached the...

    Started by ledzep‎, 05-29-2016 10:12 AM
    • Replies: 0
    • Views: 3,055
    05-29-2016, 10:12 AM Go to last post
  60. Marginal effects after logistic

    I have all binary/categorical variables, and I am trying to decide between mfx/margins to obtain marginal effects in Stata. They seem to provide...

    Started by oncearunner‎, 04-14-2016 12:41 PM
    logistic regression stata, marginal effects
    • Replies: 2
    • Views: 3,431
    05-28-2016, 07:07 AM Go to last post

+ Post New Thread
Page 1 of 33 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