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

Stack area graph help

hi guys! The dataset that I am using provides me with height, weight and waist dimensions n information. This allows me to compute both BMI and WHtR for the adult population. My intent is to present...

View Article


Check multicollinearity (panel data)

Hi everyone. I have difficulties with working with panel data (i also new with working with STATA as statistical program) At this moment, I have a model with 17 variables but I'm sure that there will...

View Article


Destring Date Variable

Hello, am trying to run odkmeta import do file but there are some error brought by the Variable "today" that it cannot be converted using the mask MDY, i have tried even DMY and its not working. Here...

View Article

using a string variable in the replace command

Hi, I have a dataset containing a string variable called "Signal" that contains cells with text like SBDE, SBLM, and so on. I need to create a new variable that takes on different values depending on...

View Article

loop for dummies?

Hi Guys, I'm sorry but I wasn't sure about the title for this post. I'm working with the following configurations: OS: Windows 7 Stata 14 I'm trying to to prepare my data to run a diff-in-diff. For...

View Article


Business Calendar Dates with Hourly Data

I have data on a frequency of every hour that only appears on business days. bcal seems to deal with business days, but is there a %tc equivalent of bcal?

View Article

Exporting results to MS Excel

Dear All, Is there a syntax that one could use to export the output below, maintaing thesame format, to MS Excel? Thanks, Dapel Code:...

View Article

Changes-in-changes (CIC)

Hi, I am trying to estimate the changes-in-changes model developed in Athey and Imbens (2006) Econometrica . Here is a link to the paper and abstract: Keywords:Difference-in-differences;...

View Article


Logistic regression: Post estimation, non linear proportion??? and...

Let say that I have a very simple model. My dependent variable is whether or not (yes and no categories) patients in a mental clinic were involved in a violent incident in their last admission. My...

View Article


Variable suffix for long-to-wide reshaped data

Hello! I am working with data on women's contraceptive histories. In long form, cases are episodes of contraceptive use or non-use. In wide form, cases are women. I have reshaped my data from long to...

View Article

Calculating average of specific number of observations across industry and years

Dear statalists, I’m using Stata 13.1 on Windows 7 and I’ve data from 2009-2012. I’ve calculated the market share of each company (i.e., comp_share). I would like to generate two variables, avrg1 and...

View Article

Simulate data for conditional logistic regression

Hi: I have this sintaxis that you can read above, but I want to simulate the same model but now considering that I have a case and control study matched 1:3. (3 controls for each case), I will use a...

View Article

Predict after Firthlogit

To calculate the Human Opportunity Index I need the probabilities that are obtained by using the command "predict prob" after logistic regression. It occurs, however, I detected in my database a...

View Article


Left single quote problem

I would like to display a left-single-quote character, i.e. ` . I know this can be done trivially with Code: dis "`" However, this is part of a larger program where other strings are also evaluated,...

View Article

converting negative number to positive without affecting positive number

Hello I have a variable "Number" containing both positive and negative numbers. I want to convert all the negative numbers to positive number without disturbing the sign of positive numbers.How can i...

View Article


Discrete Labour supply model

Hi. I really need help about it. I want to estimate the discrete labour supply model. Do i have to make code or i go with the mixed logit model?

View Article

Mximum likelihood

I have a utility that i want to estimate. And then get the probability. Pij = exp(Uij)/Σexp(Uik). First i do maximum likelihood ? Is this a mixed logit?

View Article


Speeding up melogit estimation

Hi, I have a relative small data set (_N = 8800), with 44 subjects and each with 200 trials of data. I am running the following code: Code: melogit chose_left left_minus_right_rating...

View Article

Chi2 test for Trend

Hi, I am interested to perform a chi2 test for trend on my data, where Y variable is binary and X variable are my timepoints. I want to see if the positive increase over time is significant. Would the...

View Article

Increasing Number of Decimal Places for Output of Various Statistical Tests

I apologize for the basic question. I understand how to change the format of data itself to manipulate the number of decimal places displayed. However, I've been unable to change the format of the...

View Article
Browsing all 72756 articles
Browse latest View live


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