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
Predicting residual in constrained linear regressionI did a constrained linear regression and obtained residuals by predict. Stata 15 reports that it ge…
Pivot to Long data from wide dataHi all I have a quick query, I have a small dataset that I am trying to switch from wide data to lo…
Matching: Conditioning on lagged dependent variablesHi everybody, I wondered whether it does make sense to condition on the lagged dependent variable w…
Grouped Difference of Mean TestDear all, I want to perform a difference of means test on my dataset, to see whether there is a dif…
Trajectory Analysis in longitudinal dataDear Altruists, Good morning. Any suggestions for performing trajectory analysis for longitudinal ob…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping repeated columns from a matrix
Post a Comment