Hello,
Does anyone know if there is a simple way to create a matrix from single-observation values? For example, suppose I have a dataset that contains 1 observation (for more than 1 I will use a loop) and Nx(N-1)/2 + N variables, each of which contains a correlation between something and something else (these somethings have been previously computed, for example via mgarch dcc). I'd like to create an NxN upper triangular matrix of these correlations.
Thank you,
Stan
Related Posts with create a matrix from single-observation values
bysort query issuesHello all: I am trying to replace first row of path with "CLL" and second row of path as "RT" for _…
Matching without replacement from a file of pairs for case-control and other applicationsShort version: I’m seeking a solution to how to do 1:m matching of cases and controls without replac…
create a loop to convert string variables in numeric variablesHello, I am Salvatore, happy to join the Stata Forum community. I am a new user who recently started…
Replace command with non-mutually exclusive categorical dataHello, I am working with a dataset from a Twitter content analysis project and am stuck trying out …
Number of lags too highHi everyone, I am writing as I am currently working on my bachelor's thesis with Stata. I am doing …
Subscribe to:
Post Comments (Atom)
0 Response to create a matrix from single-observation values
Post a Comment