Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

create.V

Create a V-known matrix


Description

It creates a V-known matrix of the sampling covariance matrix using definition variables.

Usage

create.V(x, type = c("Symm", "Diag", "Full"), as.mxMatrix = TRUE)

Arguments

x

A character vector of variable names of the sampling covariance matrix.

type

Either "Symm", "Diag" or "Full". Suppose the number of variables is p, the numbers of variable names for "Symm", "Diag", and "Full" are p(p-1)/2, p, and p*p, respectively. The elements are arranged in a column major.

as.mxMatrix

Logical. Whether to convert the output into MxMatrix-class.

Value

A list of MxMatrix-class. The V-known sampling covariance matrix is computed in V.

Author(s)

Mike W.-L. Cheung <mikewlcheung@nus.edu.sg>

See Also

Examples

## Not run: 
my.df <- Cor2DataFrame(Nohe15A1)

## Create known sampling variance covariance matrix
V0 <- create.V(my.df$vlabels)
V0

## End(Not run)

metaSEM

Meta-Analysis using Structural Equation Modeling

v1.2.5
GPL (>= 2)
Authors
Mike Cheung [aut, cre] (<https://orcid.org/0000-0003-0113-0758>)
Initial release
2020-11-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.