rmatrix4nbn: regression matrix of a /nbn/

View source: R/f04.nbneq.code.r

rmatrix4nbnR Documentation

regression matrix of a /nbn/

Description

returns a dimnamed matrix indicating with rho an arc from row to column nodes (0 everywhere else) where rho is the regression coefficient. Also conditional standard deviations can be introduced as diagonal elements but mu coefficient are lost... It is advisable to normalize the /nbn/ first.

Usage

rmatrix4nbn(nbn, stdev=TRUE)

Arguments

nbn

The initial nbn object.

stdev

Indicates if the standard deviations must placed in the diagonal positions.

Value

A dimnamed matrix

Examples

 rmatrix4nbn(rbmn0nbn.02);
 (rmatrix4nbn(rbmn0nbn.02, FALSE)>0)*1;

rbmn documentation built on July 9, 2023, 6:37 p.m.