as_dense_sim: Convert matrices.

View source: R/utils.R

as_dense_simR Documentation

Convert matrices.

Description

Convert sparse similarity matrix from package data to a dense version with 1 on its diagonal. This matrix can then be used by pareg.

Usage

as_dense_sim(mat_sparse)

Arguments

mat_sparse

Sparse matrix.

Value

Dense matrix

Examples

transform_y(c(0, 0.5, 1))

cbg-ethz/pareg documentation built on July 20, 2023, 7:30 p.m.