1. Announcement:
Search functionality giving errors
05-07-2017
Views:
1,876
Page 1 of 33 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... Last
Threads 1 to 60 of 1946

# Forum: Stata

Stata usage and programming, Stata help

1. ### 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...

• Replies: 0
• Views: 64
Yesterday, 08:52 AM
2. ### 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....

• Replies: 15
• Views: 510
07-03-2017, 08:46 PM
3. ### 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...

• Replies: 1
• Views: 168
07-01-2017, 01:37 AM
4. ### 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...

• Replies: 1
• Views: 248
06-23-2017, 01:15 AM
5. ### 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....

• Replies: 0
• Views: 205
06-16-2017, 06:30 AM
6. ### 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...

• Replies: 5
• Views: 373
06-11-2017, 07:08 AM
7. ### 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....

• Replies: 4
• Views: 279
06-09-2017, 12:11 PM
8. ### 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...

• Replies: 0
• Views: 746
05-08-2017, 06:23 AM
9. ### 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...

• Replies: 0
• Views: 434
05-04-2017, 01:24 PM
10. ### 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...

• Replies: 0
• Views: 572
04-24-2017, 07:33 AM
11. ### 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...

• Replies: 1
• Views: 529
04-22-2017, 03:29 PM
12. ### 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...

• Replies: 0
• Views: 441
04-15-2017, 11:03 AM
13. ### 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...

• Replies: 0
• Views: 443
04-14-2017, 02:25 PM
14. ### 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...

• Replies: 0
• Views: 690
04-04-2017, 08:31 AM
15. ### 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...

• Replies: 1
• Views: 628
04-03-2017, 10:53 PM
16. ### 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...

• Replies: 0
• Views: 982
03-23-2017, 07:18 PM
17. ### 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,...

• Replies: 0
• Views: 729
03-21-2017, 05:57 PM

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...

• Replies: 4
• Views: 8,656
03-11-2017, 02:43 PM
19. ### Running sum

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

• Replies: 0
• Views: 688
03-05-2017, 07:56 AM
20. ### 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...

• Replies: 0
• Views: 1,592
02-23-2017, 11:25 AM
21. ### 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...

• Replies: 0
• Views: 1,186
02-18-2017, 10:49 AM
22. ### 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:...

• Replies: 0
• Views: 1,249
02-09-2017, 07:37 AM
23. ### 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' ==. |...

• Replies: 0
• Views: 2,086
01-24-2017, 08:28 PM
24. ### 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...

• Replies: 4
• Views: 8,946
01-09-2017, 10:54 PM

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

• Replies: 0
• Views: 2,517
01-02-2017, 11:22 AM
26. ### 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...

• Replies: 2
• Views: 2,915
01-02-2017, 09:01 AM
27. ### 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...

• Replies: 0
• Views: 1,321
01-02-2017, 08:57 AM
28. ### 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...

• Replies: 0
• Views: 2,419
12-02-2016, 05:26 PM
29. ### 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...

• Replies: 8
• Views: 3,553
11-23-2016, 02:01 AM
30. ### 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...

• Replies: 1
• Views: 2,747
10-03-2016, 03:29 AM
31. ### 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...

• Replies: 0
• Views: 1,980
10-02-2016, 08:11 PM
32. ### 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....

• Replies: 1
• Views: 2,125
09-23-2016, 07:44 AM
33. ### 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...

• Replies: 0
• Views: 2,539
09-20-2016, 06:08 PM
34. ### 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’...

• Replies: 0
• Views: 1,909
09-13-2016, 09:00 AM
35. ### 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...

• Replies: 0
• Views: 1,560
09-12-2016, 08:47 AM
36. ### 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...

• Replies: 0
• Views: 1,489
09-07-2016, 12:23 AM
37. ### 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...

• Replies: 0
• Views: 2,090
08-15-2016, 03:16 AM
38. ### 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...

• Replies: 0
• Views: 1,977
08-04-2016, 05:13 PM
39. ### 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...

• Replies: 0
• Views: 1,524
08-03-2016, 03:54 PM
40. ### mean-test

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

• Replies: 1
• Views: 2,175
07-20-2016, 07:00 PM
41. ### 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...

• Replies: 1
• Views: 2,058
07-11-2016, 01:54 PM
42. ### 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...

• Replies: 0
• Views: 1,810
07-03-2016, 09:58 AM
43. ### 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...

• Replies: 0
• Views: 1,774
06-27-2016, 07:35 AM
44. ### 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...

• Replies: 0
• Views: 2,132
06-22-2016, 09:48 AM
45. ### 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...

• Replies: 0
• Views: 1,771
06-21-2016, 03:00 PM
46. ### Estimating treatment effect using movestay command

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

• Replies: 1
• Views: 3,182
06-08-2016, 11:09 AM
47. ### 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...

• Replies: 2
• Views: 2,272
05-28-2016, 07:07 AM
48. ### svyset

Hi, I have a database in which there are patients. Sample size is 1000. (100% response due to spare sample/replacement etc) 20 GPs were involved....

• Replies: 0
• Views: 1,819
05-26-2016, 08:18 AM
49. ### Overlaying two histograms/lines?

Hi all! I am going nuts in trying to do a graph which to me looks like the basic graph ever. Basically I have two variables: the score that the...

• Replies: 5
• Views: 13,976
05-25-2016, 09:32 AM
50. ### Pre and post with control: Difference in median

I created the difference between pre and post UOF counts and then generate a variable that represents the median for each group. base on my...

• Replies: 7
• Views: 2,615
05-19-2016, 11:51 AM
51. ### Stata: Drop company if last stock value of prior year is smaller than a certain value

Hey all, I have a CRISP dataset with daily stock values for campanies from the first of december 2010 until the end of 2011. Now I need to...

• Replies: 0
• Views: 1,579
05-15-2016, 10:32 AM
52. ### regression OLS e IV

I need estimate a model specification by OLS and a model IV and endogeneity (cross-sectional data). When I try to estimate OLS, the standard errors...

• Replies: 0
• Views: 1,643
05-13-2016, 02:25 PM
53. ### Problem Logistic regression

Hi, I want to do a logistic regression on proportional data in Stata that I've done with R before. So in R I used cbind to combine the two rows...

• Replies: 0
• Views: 1,606
05-10-2016, 08:20 AM
54. ### Help making a basic but large table in Stata

Thanks for reading :wave: I am a beginner :confused: and trying to make descriptive tables. I am trying to create an 18x18 cross-table. The 18...

• Replies: 0
• Views: 2,096
04-27-2016, 03:51 AM
55. ### Stata: Test that the difference between two groups = -1

Does anyone know how to test the hypothesis that the difference between people without and with kids = -1 per night in Stata? I have the data set...

• Replies: 0
• Views: 1,810
04-23-2016, 01:42 PM

Page 1 of 33 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... Last

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.

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

#### Icon Legend

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