forceSymmetry_cpp: Function to subset data for meta-analysis

View source: R/RcppExports.R

forceSymmetry_cppR Documentation

Function to subset data for meta-analysis

Description

Function to subset data for meta-analysis

Usage

forceSymmetry_cpp(mat)

Arguments

mat

matrix not-symmetric matrix

Value

matrix symmetric matrix (lower triangular of mat is used)

Examples

## Force matrix to be symmetric (avoiding numerical problems)
n <- 4
X <- matrix(runif(n*n), nrow = n, ncol = n)
X <- forceSymmetry_cpp(mat = X)


spBPS documentation built on Oct. 25, 2024, 5:07 p.m.