How I could do to coincide in the nivel cero a twoway graph with different...
Hello! I have a tsline graph with different scaled and axes. The left axis has a range (-4,(2) 6) and the right axis has a range (-20(10)30). Both axes pass through the zero, but do not agree on the...
View ArticleAsking about ACF and PACF graphs
Dear all, I read a lecture notes on Time Series Analysis. This document gives me loads of examples, however, I don't understand why they choose the Arima (0,1,1)x(0,1,1)12 for the case. I attached the...
View ArticleCreating a new variable using values from other variables?
Hello, Any advice would be greatly appreciated. I have variables on language that examine 4 dimensions of language proficiency measured across racial/ethnic groups (each on a 4-item scale from “very...
View ArticleDecompose Theil index for data including zero values (no income/earnings)?
Hello, I want to decompose the overall inequality measured by Theil index into between- and within-group inequality. The problem is my data contain persons with zero earnings, and they are...
View ArticleOmitting (one) main effect in interaction with dummies
Dear Statalist members, I have a question about omitting main effects in models with an interaction between two dummy variables. My question concerns the following paper which uses a DiD model:...
View ArticleMultiplying observations within a variable conditionally
Hi all, I have a question regarding the multiplication of certain observations within my variables. I'll explain it. I have a variable LoanPayments and a variable PaymentFrequency (string variable)....
View Articlereshape problem
I have data over time for income inequality in the states. I want to convert the data set to wide. I typed: reshape wide p90_100-p999_p9999,i(state) j(year) And got the error message: (note: j = 1913...
View Articleconvert date to year, month, day for several variables with different name...
Hi All, I have 10 different variables with the word "date" in their name. The names have two parts, word "date" and a unique part.But the order of these two parts is different. For example,...
View Articletab and summerize
Dear All, I am beginner with use of Stata and would like to ask your kindly help. I have following variables: year, location, income, share of expenditure and I would like to tab year with location...
View ArticleData cleaning
Hello everyone.. I have an issue with data management in stata.. can you please give some hints what you do to understand whether the variable is useful for regresson or not if you have only values and...
View ArticleFactor analysis - Not use the factors but the scale mean?
Hello, I am very new to Stata and statistical analysis and have a lot of questions, sorry if they are stupid. =) I tried to figure out the basics myself, but now I am not very sure how to move forward....
View ArticleGenerating new variables based on all values of an existing variable and...
I have a dataset of individuals that can be lenders and borrowers. A simple example of my data set is as follows: Code: i Lending 1 1 2 0 3 1 4 1 5 0 6 1 1 0 2 1 3 0 4 1 5 0 6 1 end Here, the variable...
View ArticleReshape variables from long-wide to wide-long
Good morning, I am trying to reshape my data as explained in the attached picture - do you know if this is possible? I have tried many variations of reshape and have been unsuccessful.
View ArticleStickies
Any chance of getting a sticky post to stay at the top of the general forum explaining how to use the [code] blocks and dataex? And another in this forum directing people to post Stata questions to the...
View ArticleHow I could do to increase the space between each tick?
Hello! I have a tsline graph with quarter time from 1994q3 to 2015q3, where 1994q3 is the third quarter of 1994. The quater time is the x axis. I need increase the space between each tick. For example...
View Articlehow to calculate marginal means for svy: meglm when combined with mi estimate
Hi Stata forum - We are looking for the correct syntax to predict probabilities and margins at different ages with multiple imputations on multilevel growth curve models adjusted/weighted for complex...
View ArticlePlotting the random+fixed effects of slopes after multilevel models are fit...
Hello all, That's my first post in here, so let me know if I do something wrong. Well, my problem is the following. I am fitting a linear multilevel model of the following form: Code: Y = b0 * X0 + b1...
View ArticleWinsorizing at standardization deviations
Hello everybody, regarding winsorizing I have a little problem understanding a procedure used in literature. I already know and understand the winsor (ssc) command, e.g. to winsorize variables by their...
View ArticleGenerating means with missing or 0 value
Hi, I am trying to plot a bar graph using variables averaged. My group variable is age cohorts in 5 years intervals. My averaged variable is hours worked by economists. When I do by agecohort sort:...
View Articlemlogit with varying choice set
Dear all, I have one question concerning the mlogit command in Stata and/or R. In the model I’m working on the individuals don’t face the same choice set each other; for example I have 10 alternatives...
View Article