Quantcast
Channel: Statalist
Browsing all 73331 articles
Browse latest View live

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 Article


Asking 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 Article


Creating 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 Article

Decompose 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 Article

Omitting (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 Article


Multiplying 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 Article

reshape 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 Article

convert 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 Article


tab 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 Article


Data 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 Article

Factor 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 Article

Generating 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 Article

Reshape 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 Article


Stickies

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 Article

How 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 Article


how 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 Article

Plotting 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 Article


Image may be NSFW.
Clik here to view.

Winsorizing 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 Article

Generating 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 Article

mlogit 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
Browsing all 73331 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>