Hi all,
I am trying to remove spaces from one of my string variables "idhspid". There are three spaces at the beginning of each...
Announcement
Collapse
No announcement yet.
345 results in 0.0110 seconds.
syntax
x
You can also choose from the popular tags.

Removing spaces in string variables
 4 posts

Magnus Haselier started a topic How do I refer to a variable that might not be included in the varlist of a program?in GeneralHow do I refer to a variable that might not be included in the varlist of a program?
How do I refer to a variable that might not be included in the varlist of a program?
I have simple program where I want to generate a variable...
 2 posts

Merging data
Hello,
I am trying to merge variables from the original Demographic and Health surveys (DHS) with the IPUMSDHS data. The unique identifier...
 4 posts

Loops graphs by group error in saving
Dear all,
I am trying to generate graphs using loops and levelsof by regions and would like to save them before combining. I am using the...
 3 posts

Using svyset and switching between two datasets with twostage design
I have two datasets of a sample that were created using Probability Proportional to Size (PPS) sampling in a twostage design with strata. The sample...Last edited by Daniel Jensen; 14 Mar 2020, 17:13.
 1 post

IV variable option in Stata program syntax
Hello
I am trying to write a program to run a regression based on some criteria and I want to add the possibility of adding an instrumental...
 1 post

Is my Xtdpdgmm syntax correct?
xtdpd L(0/2).n L(0/1).(w k ys) year yr1980yr1984, dgmmiv(n w k ys) div(year yr1980yr1984) twostep nocons vce(robust)  If Iwant to perform this...
 2 posts

Xtdpdgmm code
Hi, I want to replicate the result of the following code by using Xtdpdgmm. But I don't know what would be the solution
xtdpd L(0/2).(n k)...
 1 post

Generating the AVERAGE, by dropping Missing Values
Hello Everyone,
I have Ten years of Data (2005 to 2015) for an X variable for 200 countries (data taken from WDI)
I wanted to...
 11 posts

Grouping values within a variable?
In a prior post I looked at https://www.statalist.org/forums/for...hinavariable I tried to derive an answer, but no response, so I thought I create...
 8 posts

cmp  unable to allocate matrix
Hi,
I am using the cmp command to simultaneously estimate three probit equation such as:
DV_{1 }= b_{0} + b_{1} + b_{2} + b_{3} + b_{4} + b_{5}...
 3 posts

Issues with getting minimum date value in a data set
Hi there I'm having issues trying to identify the minimum value of date of dispensation for each drug in the data set. Here's a sample data set and I've...
 3 posts

using rangerun with entropyetc
Hello, I have this example dataset.
I am attempting to calculate Simpsons Index using entropytec but I would like to do it over a one year rolling...
 3 posts

How to run LM tes to check of Spatial Autocorrelation in panel data?
Hello Dears
I had run LM tes to check of Spatial Autocorrelation in panel data but i got an error massage
I followed this...
 1 post

Yang Zhou started a topic What's the syntax for panel ARDL model with CCEMG estimator? Should the xtmg command be used?in GeneralWhat's the syntax for panel ARDL model with CCEMG estimator? Should the xtmg command be used?
_{Dear all,}
_{I am learning Stata and trying to figure out how to use the xtpmg command with CCE Mean Group (CCEMG) estimator.}
_{Recently}...
 8 posts