Hi,
I have 4 variables called x, y, x1, and y1. I define two matrices called A and B as A=[x y] and B=[x1 y1]. I want to calculate the correlation between A and B. I can do it in Matlab with corr2 function but don't know if it is possible to do it in Stata. Thank you for all help in advance.
Ulas
Related Posts with Correlation between two matrices
Generating a variable to count repetitions of observations based on group and time -rangestat-Dear Statalists, I am using Stata/MP 16.1 to analyze a large dataset (200,000 obs.) of investor lea…
Diff in Diff by Hand and StataHi everyone, I'm an undergrad and trying to understand what Stata does when I run a diff-in-diff co…
Add rows within the groupHi, I am trying to add individual information in few rows so that to have one row per individual. Th…
Removing duplicatesHi Statalist, I have this variable: Code: * Example generated by -dataex-. To install: ssc instal…
test of endogeneityHow to find which variable is endogenous before finding an instrument for it (before 2sls test)? …
Subscribe to:
Post Comments (Atom)
0 Response to Correlation between two matrices
Post a Comment