Dear statalist,
I have a matrix in which two or more columns are exactly same. Is there some way of keeping one of them and dropping all others?
For example, I have the matrix
1 4 2 1 1
2 7 0 2 2
3 3 5 3 3
I want to drop the last two columns since they are same as the 1st column.
Thank you in advance.
Shoummo Sen Gupta
Related Posts with Dropping repeated columns from a matrix
Stationarity, Markov switchingHi everyone, I was trying to model times series with markov switching regimes. Preliminarily, do I n…
Need help with sampling processHello, I am working with a dataset with merged data from 2 survey rounds (2005 & 20011). The f…
Out of sample estimation following xtdpdgmmStata throws a 301 error (last estimates not found) whenever I try to use estimates from a dynamic m…
GMM for time seriesHello Statalist, 1.I am using time series data. my main equation is pbt = a0+a1pbt-1+a2pdt-1+ogt+e b…
Cartesian product of ColumnsDear Statalisters, I have 2 sets Set_1= {HH, HT, TT, TH} and Set_2 = {1, 2, 3, 4}. These are the in…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping repeated columns from a matrix
Post a Comment