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

Why is xtpedroni Limited To 6 Variables?

Hi everyone, This is my first post in this forum after several years of lurking. My question is: how come I cannot run PDOLS regressions with more than 6 independent variables with xtpedroni? Instead I...

View Article


Installing plssem in Stata version 14.1

Dear Stata users, I am trying to install the plssem package using . ssc install plssem. Unfortunately the package is not compatible with my Stata version (14.1). I get the following error message: this...

View Article


generate variable which is calculating percentage

Hello guys, im relatively new to Stata and im stuck with an assignment. It goes like this: Use the variable “womenpar” to calculate the percentage of men in parliament (tip: use the generate command...

View Article

Custom labels in a coefplot.

Dear All, I am estimating a regression postestimation plot using a user written coefplot. Following is my code and attached graph it generates: Code: coefplot, drop(treated2 wk_* post _cons) ///...

View Article

Replacing string using regexm/regexs

Hi, My data consists of a list of viral mutations, separated by a comma. Here is some dummy data: Code: * Example generated by -dataex-. To install: ssc install dataex clear input str33 nrti...

View Article


Is the percentage significantly higher than another?

when I want to compare the difference of two percentages, I input the value in the code: prtesti 1196 273 1549 313, count the result shows as below: Two-sample test of proportions x: Number of obs =...

View Article

Graph: label x-axis (years) from "2001" to...

Dear all: I am writing to ask a very quick question for the Stata graphs. As you could see from the simple code below, I would like to draw a variable against the year (x-axis). However, the year is...

View Article

Covid19 ICUs prediction

Dear all I am trying to help a local hospital in Italy in predicting the number of intensive care units (ICUs) which will be required in the next few days. I know the number of admitted patients but...

View Article


Converting string date to date

Dear stata people, I am currently trying to merge two datasets. We'll call dataset one: X and dataset two: Y. The problem is occurring in X. The way I am trying to match each row and merge the two...

View Article


Creating dummies for whether value of a variable for a given obs has appeared...

Hi there, I have a dataset on patents and their respective subclasses. Over a large number of inventors and years, my sample totals nearly 4 million patents. Each of them can have various subclasses. I...

View Article

Creating dummies for whether value of a variable for a given obs has appeared...

Hi there, I have a dataset on patents and their respective subclasses. Over a large number of inventors and years, my sample totals nearly 4 million patents. Each of them can have various subclasses -...

View Article

calculating cronbach's a in a batch

I have a variable, whcih contains the combination of items, such the item1 item2 and item3 in the first observation, and item1 item3 in the second observation. How to calculate the cronbach's a in a...

View Article

Multiple ARMA model orders

I apologize if this has already been answered, however, I either can't find the answer or I've seen it and don't understand it. I need to estimate an ARMA model order from (0,0) to (5,5). Is there a...

View Article


Issues implementing a multivariate tobit model of 7 equations

Has anyone ever implemented successfully a mvtobit? I read though all the questions about mvtobit, but I still can't figure out how to solve my issues. I am running an mvtobit of 7 equations: 7 DV and...

View Article

multiplying each value from a long format variable by corresponding value...

Hello, I have a question that is a bit complicated for me to solve. First of all, here's the example data set. Code: * Example generated by -dataex-. To install: ssc install dataex clear input...

View Article


Laptop Configuration for Big Data

Dear Stata List I am working with a large trade dataset (17 g). The dataset has three dimensions : 5000 products, 190 countries and 3 time periods. I use reghdfe command to run a linear model with...

View Article

Poststratification video tutorial

In the following YouTube video tutorial Chuck Huber (StataCorp) mentions at 4:25 that the poststratification options are going to be described in a different video. I have found a reference to:...

View Article


Decile groups based on MPCE

Hello, I'm trying to re-create a table given in one of the technical reports on housing. The data set includes household level data on housing condition and other socio-economic parameters. The table...

View Article

Making predictions on spatial panel data

Hello! I am trying to make a model for estimating the demand for city-bikes. For this, I have created a spatial panel regression (using spxtregress). I run the estimation on a subsample (one month of...

View Article

Loop to create new variables

Hello, I have data with a date variable and some other variables. For each date, there are multiple observations. I am looking to iterate over a range of variables and for each of these variables...

View Article
Browsing all 73262 articles
Browse latest View live


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