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
How can i know the exact value for a number in STATA and replaceDear All I have a data set where I want to create a new variable using an existing variable with va…
Using matchit commandDear all I am working with crop productivity data from Bangladesh and attempting to identify observ…
PSM help: using observation # stubs to generate dummiesHi All. I’d love some help with the PSM dataset I’m constructing. I’ve already established overlap a…
Problem using Hoechle's Hausman test for Driscoll-Kraay standard errorsHi, guys! So I have a problem. I'm trying to use the Wooldridge/Hausman test that Hoechle suggests i…
Merge data sets and keep specific observationsDear all, I have a problem merging two panel data sets (one data set with ESG Scores for firms and …
Subscribe to:
Post Comments (Atom)
0 Response to Dropping repeated columns from a matrix
Post a Comment