1. 10-14-2010
    Views:
    17,837
+ Post New Thread
Page 1 of 29 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 1697

Forum: Stata

Stata usage and programming, Stata help

  1. 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-15-2014 11:04 PM
    • Replies: 5
    • Views: 305
    10-21-2014, 02:47 PM Go to last post
  2. 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 10:38 AM
    • Replies: 0
    • Views: 90
    10-21-2014, 10:38 AM Go to last post
  3. 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 08:20 AM
    • Replies: 0
    • Views: 88
    10-21-2014, 08:20 AM Go to last post
  4. 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 05:34 AM
    drop duplicates, duplicated individuals
    • Replies: 2
    • Views: 238
    10-13-2014, 11:13 PM Go to last post
  5. 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 09:46 AM
    • Replies: 2
    • Views: 275
    10-13-2014, 08:45 PM Go to last post
  6. 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 03:15 AM
    coefficient, coefplot, regression, stata, vertical graph
    • Replies: 0
    • Views: 216
    09-30-2014, 03:15 AM Go to last post
  7. 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 02:55 PM
    • Replies: 0
    • Views: 185
    09-29-2014, 02:55 PM Go to last post
  8. Label multiple variables Foreach

    I have a series of multiple response variables. var8a var8b var8c; var9a var9b var9c; etc I would like to label my "a" variables *(var8a and var9a)...

    Started by Marvin85‎, 04-25-2014 09:47 AM
    foreach, variable label
    • Replies: 6
    • Views: 744
    09-24-2014, 04:49 PM Go to last post
  9. kappci command in Stata 11.0 -

    I am using the kappci command that I installed from the kaputil to determine the confidence interval between two unique raters. When I use nominal...

    Started by helpwithstats‎, 07-07-2011 01:59 PM
    • Replies: 3
    • Views: 1,312
    09-24-2014, 09:02 AM Go to last post
  10. Merging PISA waves in Stata

    I am running into trouble trying to merge multiple PISA waves into one Stata file for running some hierarchical models. So far, I have combined the...

    Started by aliciacroft‎, 09-22-2014 03:26 PM
    merge, multiple datasets, pisa, stata
    • Replies: 3
    • Views: 174
    09-23-2014, 12:18 PM Go to last post
  11. Replicating values of a variable for additional observations

    Hi all, I have a question and would be grateful if you could answer: I have panel data from 2000 to 2012. One variable however, ‘var_a’ runs only...

    Started by diesel‎, 09-23-2014 09:33 AM
    • Replies: 0
    • Views: 79
    09-23-2014, 09:33 AM Go to last post
  12. variables being dropped from difference gmm

    I'm working with panel data, using the command xtabond2 for Arellano Bond estimator. When I run the command, most of my explanatory variables are...

    Started by jsaldain‎, 09-22-2014 06:33 AM
    • Replies: 1
    • Views: 151
    09-22-2014, 07:34 AM Go to last post
  13. Requesting help with creating a semi-complex variable

    My datafile looks something like this: COUNTRY REGION YEAR GDP Albania ECA 1995 5 Albania ECA...

    Started by solarium‎, 09-21-2014 09:42 PM
    • Replies: 1
    • Views: 143
    09-21-2014, 10:34 PM Go to last post
  14. Business Calendars/ STATA 11

    Hi all; I use STATA 11 and i would like to create my own business calendar. I have daily data starts from 05/01/2004 to 25/07/2014. i would be...

    Started by Nour‎, 09-14-2014 05:17 AM
    • Replies: 1
    • Views: 177
    09-21-2014, 10:29 PM Go to last post
  15. Create tables /// export tab results directly to excel

    I generating a descriptive report for my boss ( that is just frequency tables). I tab everything in stata and the copy as a table and paste it excel....

    Started by Marvin85‎, 09-03-2014 09:46 AM
    • Replies: 7
    • Views: 412
    09-16-2014, 08:16 AM Go to last post
  16. Transformation of multiparty partnerships into dyadic relationships

    Dear Stata gurus, I'd like to ask for your help once more. The problem is as follows: I have data on multiparty partnerships structured in the...

    Started by Slavutich‎, 09-13-2014 06:04 PM
    • Replies: 2
    • Views: 187
    09-15-2014, 03:41 AM Go to last post
  17. statistical tests for a special period of time

    Hi, I need to run statistical tests for a special period of time, not for all period how can i do that? Thanks in advance

    Started by Nour‎, 09-12-2014 05:41 AM
    • Replies: 1
    • Views: 136
    09-14-2014, 07:18 PM Go to last post
  18. Help with matrix and loop

    Hi I'm trying to generate a matrix with the following code matrix A=J(17,8,0) forval i=1/17 { forval j=0/7 { quietly summarize cise if...

    Started by jfca283‎, 09-02-2014 11:50 AM
    • Replies: 3
    • Views: 219
    09-14-2014, 12:09 PM Go to last post
  19. Need help with -keep-/-drop- function in Stata

    Hello everybody, I'd like to ask for your help with -keep-/-drop- function in Stata. The problem is as follows: suppose I have a column, called...

    Started by Slavutich‎, 09-10-2014 03:35 PM
    • Replies: 2
    • Views: 223
    09-12-2014, 06:43 AM Go to last post
  20. Export three way table to excel o csv?

    Hi I hope you can help me. I need to export multiple tables of this kind table varx1 sex education , c(mean ing_t_p) center row col...

    Started by jfca283‎, 09-09-2014 04:31 PM
    • Replies: 1
    • Views: 173
    09-10-2014, 05:01 AM Go to last post
  21. ML est. with oprobit per Huasman et al in Stata 13?

    Hi. I am using Stata IC 10 and having difficulty implementing the ml estimation to determine sensitivity to misclassification in limited dependent...

    Started by JFalcon‎, 09-09-2014 11:19 AM
    misclassification, ologit, oprobit, stata 13, stata10
    • Replies: 1
    • Views: 185
    09-09-2014, 03:24 PM Go to last post
  22. Regression lines parallelism test in STATA

    Hello everybody, Please help me with the following issues. ANCOVA rests on the assumption that the regression lines are parallel, or that...

    Started by kiton‎, 09-08-2014 09:13 PM
    • Replies: 6
    • Views: 208
    09-09-2014, 10:53 AM Go to last post
  23. Comparing proportions in a subgroup to proportions in the overall population

    I am trying to compare the proportion of patients in my subgroup with the outcome of interest to the proportion of patients in the overall population...

    Started by apandya‎, 09-08-2014 11:41 PM
    proportion test, stata, subgroup
    • Replies: 3
    • Views: 132
    09-09-2014, 10:32 AM Go to last post
  24. Correlation between 2 variables across the quantiles of independent variable

    Hi, I need to estimate correlation between 2 variables across quantiles of volatility (volatility is an independent variable).. I want to show how...

    Started by Nour‎, 09-08-2014 11:12 AM
    • Replies: 2
    • Views: 134
    09-09-2014, 08:49 AM Go to last post
  25. Post string values (several male names) to numerical var

    Hi, this is my first question here, i'm learning STATA. I have a string var ("names") and I need to make a list of a group of those names in order...

    Started by cafu‎, 09-06-2014 01:41 PM
    names, numerical variable, string variable
    • Replies: 1
    • Views: 189
    09-08-2014, 08:04 AM Go to last post
  26. Find the lowest ordinal variable score of many variables

    Hello guys, I have an task to do that is a little bit weird and could find a solution. I have a series of liker-scale ordinal variables. Do...

    Started by Marvin85‎, 09-02-2014 04:40 PM
    egen, gen, list, scale
    • Replies: 2
    • Views: 228
    09-03-2014, 09:34 AM Go to last post
  27. Wordfreq command (from Wordscores) replaces variables

    Hello. I'm trying to test Wordscores using the example here. Unfortunately, when creating new variables using the command: wordfreq...

    Started by Edmund‎, 09-02-2014 11:09 AM
    • Replies: 0
    • Views: 108
    09-02-2014, 11:09 AM Go to last post
  28. Stata Unbalanced Panel Data - which ttest should I use to compare means?

    Hi, Apologies if this question is very basic but I have spent hours looking online and in forums such as this one for an answer and I am still...

    Started by statauser2109‎, 09-02-2014 04:06 AM
    averages, panel data, stata, ttest
    • Replies: 0
    • Views: 146
    09-02-2014, 04:06 AM Go to last post
  29. multiple response tables

    I have a multiple response variable: race=participants can select more that one race. race1 race2 race3 so on I need to create a table in...

    Started by Marvin85‎, 08-22-2014 12:08 PM
    multiple response, tab
    • Replies: 3
    • Views: 281
    08-28-2014, 10:51 PM Go to last post
  30. How to keep the IDs only from the master dataset while merging?

    Hi, I have 2 datasets a master and a second one that has some extra variables that I want to use. The IDs in the two datasets are not quite the same,...

    Started by leilafg‎, 08-20-2014 05:27 AM
    • Replies: 5
    • Views: 308
    08-26-2014, 05:21 PM Go to last post
  31. Complex reshape

    Hello guys, I really need help with this on. I have a dataset of healthcare organization with the following variables: ContactID : organization...

    Started by Marvin85‎, 08-23-2014 11:20 AM
    • Replies: 4
    • Views: 306
    08-26-2014, 01:21 PM Go to last post
  32. Create correlation coefficients and p-values as variables

    I need assign a correlation coefficients and its p-values to a variable I can do this for the correlation coefficient using: egen corr_IBSMR =...

    Started by kmatthews‎, 08-22-2014 03:34 PM
    egen corr pwcorr
    • Replies: 2
    • Views: 255
    08-23-2014, 02:59 AM Go to last post
  33. Error while using vif command

    Hi all, I generated a regression model in stata with the mvreg command. (.mvreg dv = iv1 iv2 iv3 etc.) After that I want to assess the data on...

    Started by surveyman‎, 08-22-2014 11:40 AM
    • Replies: 0
    • Views: 142
    08-22-2014, 11:40 AM Go to last post
  34. Merging two datasets, one with repeated IDS!

    Hi, I have a main dataset that I am working on and a second one that is relevant to my main dataset via ID number of the subjects. I am using STATA...

    Started by leilafg‎, 08-18-2014 08:48 AM
    • Replies: 2
    • Views: 164
    08-18-2014, 05:26 PM Go to last post
  35. Matrix for storing results from a tabulate

    Hi I hope i will write well my problem. I need to store the results from this tab variable1 variable2 in the matrix form. But additional to...

    Started by jfca283‎, 08-18-2014 03:43 PM
    • Replies: 0
    • Views: 152
    08-18-2014, 03:43 PM Go to last post
  36. Question How to convert a data stored as year (only) to 01/01/year?

    Hi, I am using STATA and in my dataset date of birth is as year (no md). I want to calculate the age. So I need the dob as mdy do that can format it...

    Started by leilafg‎, 07-23-2014 05:13 PM
    • Replies: 6
    • Views: 414
    08-18-2014, 02:46 PM Go to last post
  37. Asynchronous DCC-GARCH

    Has anyone worked on an Asynchronous or Threshold DCC-GARCH in STATA? I've been trying to figure out how to write the code and am looking for a...

    Started by vikingo‎, 08-18-2014 12:54 PM
    dcc, dcc-garch, garch, mgarch, stata
    • Replies: 0
    • Views: 89
    08-18-2014, 12:54 PM Go to last post
  38. Tipping points

    Hi, I have some basic descriptive data for religious personnel over a 20 yr time period. I graphed this data in Stata. I am trying to figure out...

    Started by Counting‎, 08-15-2014 09:24 AM
    • Replies: 4
    • Views: 205
    08-15-2014, 03:47 PM Go to last post
  39. gllamm model

    Hi everyone, I am struggling with hierarchical SEM, which gllamm should be able to perform. In detail I have a data set with one variable which...

    Started by hvalica‎, 08-14-2014 08:29 AM
    • Replies: 0
    • Views: 103
    08-14-2014, 08:29 AM Go to last post
  40. Creating Community-level Categorical Variables from Household Level data

    Good day everyone, I am trying to create community-level categorical variables from equivalent household categorical variables. For example I have a...

    Started by Busi‎, 08-07-2014 05:27 PM
    • Replies: 3
    • Views: 292
    08-09-2014, 01:28 PM Go to last post
  41. Bootstrapping residuals

    Hi! I am writing my master thesis in mutual funds in norway. in this I have to bootstrap some residuals according to the method of Kosowski et al...

    Started by neztirual‎, 08-08-2014 11:07 AM
    • Replies: 0
    • Views: 142
    08-08-2014, 11:07 AM Go to last post
  42. Fixed effects regression for panel data - help needed, please.

    I wonder could people shed some light on a issue for me, please? Having carried out a unit root test I have determined that all my variables are...

    Started by seanyshuffler‎, 08-06-2014 08:56 AM
    • Replies: 0
    • Views: 160
    08-06-2014, 08:56 AM Go to last post
  43. Date variable- only month

    Hi Guys, I have a date variable, save in the type below. example 03 Jul 14 DateToday long %dD_m_Y I would like to...

    Started by Marvin85‎, 07-24-2014 11:05 AM
    date, month
    • Replies: 2
    • Views: 225
    08-05-2014, 11:01 PM Go to last post
  44. Ranking in Stata

    Hi all I have a panel data with the following variables: firm......year.......Carhart alpha So, I would like to assign a rank from 0 to 1 for...

    Started by Man‎, 08-01-2014 06:07 AM
    • Replies: 3
    • Views: 231
    08-05-2014, 10:29 PM Go to last post
  45. Need help with VAR

    Hi, I am planning to run VAR to gather insight about the feasibility of inflation targeted monetary policy. I have been reading up on the three...

    Started by Zaineb Naveed‎, 08-05-2014 02:44 AM
    var
    • Replies: 0
    • Views: 151
    08-05-2014, 02:44 AM Go to last post
  46. Ordinal logistic regression: g-o-f test in Stata13

    I'm running an analysis on ordinal data in Stata13. I'm looking at 7 different DVs (separately), so parsimony is crucial--I will be repeating every...

    Started by layacoop‎, 07-28-2014 01:59 PM
    chi-square, composite score, goodness-of-fit, ordinal logistic
    • Replies: 1
    • Views: 173
    08-01-2014, 06:38 PM Go to last post
  47. Question Graphically check linearity in logit regression

    Hi all, I am running a logit regression where the outcome variable is binary. I am interested in checking, graphically, whether the relationship...

    Started by Phaedrus‎, 07-21-2014 07:50 AM
    2 Pages
    1 2
    • Replies: 21
    • Views: 796
    08-01-2014, 06:23 PM Go to last post
  48. Keep IDs - "too many literals" error

    Hey guys, I want to keep only certain sample of my population based on agency_id. My try was keep if agency_id==1 | agency_id==2...

    Started by Marvin85‎, 04-29-2014 11:57 AM
    error, keep id, too many literals
    • Replies: 14
    • Views: 817
    07-31-2014, 11:25 PM Go to last post
  49. Tabout - I need to print the database used

    Hi I hope you can help me I print the following result with this loop in excel cd C:\Users\JC\Bases\Stata local filelist: dir . files "*.dta"...

    Started by jfca283‎, 07-31-2014 11:13 AM
    • Replies: 0
    • Views: 127
    07-31-2014, 11:13 AM Go to last post
  50. joinby / merge help

    Hi All! After going through the help files on STATA for joinby and merge I still can't figure out how to do the following: For example I have...

    Started by rukimaru‎, 07-31-2014 02:01 AM
    • Replies: 0
    • Views: 153
    07-31-2014, 02:01 AM Go to last post
  51. Interpreting quadratric interaction in logistic regression

    I am running a survey-weighted logistic regression (svy: logit) to determine the significant predictors of a particular medical outcome. I have...

    Started by sharatp‎, 07-30-2014 06:20 PM
    • Replies: 0
    • Views: 66
    07-30-2014, 06:20 PM Go to last post
  52. Indexing of data to make it comparable

    Hi everybody, I am a new STATA user and I would need to create an index. I have values per month for two products. I would like to make their...

    Started by kstrodel‎, 07-30-2014 04:07 PM
    comparing, indexing
    • Replies: 0
    • Views: 145
    07-30-2014, 04:07 PM Go to last post
  53. Exclamation no observation error r(2ooo)

    i have panel data set as follow, . xtset cn year panel variable: cn (unbalanced) time variable: year, 1970 to 2012 ...

    Started by jawhar amini‎, 07-26-2014 10:32 AM
    • Replies: 6
    • Views: 300
    07-30-2014, 06:00 AM Go to last post
  54. household expenditure analysis

    hi, this is the first time I am using stata. I am trying to analyse the change in household expenditure with respect to the head of the household. ...

    Started by kiranj‎, 07-29-2014 09:34 AM
    • Replies: 0
    • Views: 129
    07-29-2014, 09:34 AM Go to last post
  55. Question Single and double quote issue with a label define

    I'm trying to create a label define with text that has single and double quotes. Is there a way to escape these characters? Here is some of my...

    Started by jerry898969‎, 07-25-2014 03:21 PM
    • Replies: 5
    • Views: 212
    07-29-2014, 07:34 AM Go to last post
  56. autocorrelation and heteroskedasticity tests (panel data)

    Dear all, I have an unbalanced panel data and I want to estimate the fixed effects model. I have the following regression specification: x =...

    Started by Aiko‎, 07-25-2014 11:02 AM
    • Replies: 3
    • Views: 197
    07-25-2014, 10:40 PM Go to last post
  57. Value Labels to many Variables

    I have a series of variables with responses 1=Yes 0=No. I want to label the values of these variable in a efficient way. This is my try but it is...

    Started by Marvin85‎, 07-14-2014 01:02 PM
    foreach, label values
    • Replies: 2
    • Views: 210
    07-24-2014, 08:56 AM Go to last post
  58. Controlling for autocorrelation in a regression

    Hi all I have a panel data; I ran the Hausman test and it showed a significant p-value, thus I conduct my regression by using 'xtreg' command +...

    Started by Man‎, 07-22-2014 08:12 AM
    autocorrelation
    • Replies: 0
    • Views: 192
    07-22-2014, 08:12 AM Go to last post
  59. Outreg2 - table with summary statistics

    I run the regression and then type: outreg2 using myfile, sum word seeout replace In Stata the table is seen with obs, mean, std.dev, min and...

    Started by Eric_B‎, 06-15-2014 02:15 AM
    • Replies: 1
    • Views: 413
    07-22-2014, 02:19 AM Go to last post
  60. Volatility of abnormal returns.

    Hi all, When employing raw returns, one defines performance volatility as the standard deviation of these raw returns over some prior period (say...

    Started by Man‎, 07-21-2014 11:04 AM
    • Replies: 0
    • Views: 148
    07-21-2014, 11:04 AM Go to last post

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