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

Marginsplots of a linear functions of coefficients from a single...

I am trying to figure how to plot a linear function of coefficients from a first-difference regression. Here's a non-sensical example: Code: webuse nlswork, clear xtset idcode year reg D.(ln_wage hours...

View Article


Financial Packages in Stata

Hello , Do we have any financial packages in Stata ? Can you please name some? Especially, do we have any financial packages in Stata equivalent to QUANTMOD in R Thank you, Anwar

View Article


Inconsistent behavior of estadd across computers (same version and do file)

I am using STATA currently on a server and my own computers. I noticed during the last couple of days an inconsistency when using estadd after a regression. A simple example is the code: ​ Code: sysuse...

View Article

Corrected variance–covariance matrices after ordered sample selection equation

Dear Statalist Currently I am working on a triple hurdle model with two sample selection. The model structure is first stage probit, second stage ordered probit and finally lognormal following Burke,...

View Article

Optimization problem in Stata

Hi, I am trying to solve an optimization problem with Stata. Here is a sample of the data have: Code: pack item qty pack_price SNESYSA02E 1220-10 1 10 SNESYSA02E 1220-11 1 10 SNESYSA02E 220101091X...

View Article


How to deal with Omitted Variables in School Fixed Effects Model

Hi everyone, I'm running a School Fixed Effects Model and I'm facing a particular problem with one omitted variable at class level. This is my command for the first attached file: xtreg puts_mat puss...

View Article

"Repeated time values within panel" and "(0...

Hello, I have a problem with stata and the command xtset. I have 1050 observations (42 countries over 25 years). The problem is that, when I write "xtset id date" (id was created with the command...

View Article

link paired t test correlation. beginner question

hi guys! this is definitely a beginner's question. what i am basically asking is what is the link between the correlation value and the paired t-test p-value? does a high correlation-1- translated into...

View Article


Multiple logistic regression issues

Hi, Like to check if my techniques for variable selection in multiple logistic regression is robust. I have a outcome and several predictors, some continuous and some categorical variables. I used...

View Article


add text to summarized data

halo I’m using following command to export summary of EBIT's if certain condition is met. For every condition I want to have a row and then append them manually. I would like to add an cell to each row...

View Article

Silverman test

Dear all, I'm trying to carry out a Silverman test using silvtest command. I'm puzzled on how to set the critical bandwidth whose significance level is assessed by the bootstrap procedure. Basically,...

View Article

Why doesn't saving a file with "save as" in the do-file...

Situation: I have a previously saved do-file open. I click save-as. In other software, I would see the current file name of the file (likely highlighted and ready for me to edit). In Stata, I just see...

View Article

Study design for a hypothetical agricultural experiment

I'm sorry that this topic is a little outside the domain of the Stata forum, but I really don't know where else to turn for advice. It is about how certain types of agricultural experiments are...

View Article


How to code for employee rehire?: Subgroups, Loops, By command...

Hi Everyone, I have a list of employees (see table below for a short example), and I'd like to generate a dummy variable to indicate when an employee has been rehired by a particular firm. In the...

View Article

Missing output in ologit?

Hi everyone, I’m running a rather long ordinal logistic regression and am running into a problem: for some reason, not all of the potential options in my interaction term are showing up in the output....

View Article


Generating a unique case id

I need some help to create a unique case id per patient. My dataset have duplicate records per patient. I am trying to identify unique patients by patient health card number (HC) and if HC number is...

View Article

Keep the repeated time values within panel

Dear All Stata User, As you see in attach I have repeated variable in my dataset. My data is unbalanced. I have 45 countries and 230 parties in the data. Each country has different amount of parties....

View Article


Randomizatio inference (beyond "permute")

Hi, I was wondering if there are any tools for randomization inference / Fisher permutation tests, that go beyond what can be achieved by the permute command. I wrote something myself a while back and...

View Article

Using ctrl+arrow to edit text (variable names) in do-file editor.

This is either a feature request, or just request for recommendations of a better text editor. I've tried, but haven't made it a habit, to edit in Notepad ++ and run my code in batch. That may be what...

View Article

Using CMP to fit Craggit

Hi everyone, I am learning about cmp command, and trying to use it instead of craggit command. However, when I compare the output with craggit (no matter how I do it), I get different results. It looks...

View Article
Browsing all 65082 articles
Browse latest View live


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