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

matrix_helpers

Create matrices from vector input


Description

Create matrices from vector input

Usage

bmat(..., correlation = FALSE, digits = -1)

cmat(..., digits = -1)

dmat(...)

Arguments

...

matrix data

correlation

logical; if TRUE, off diagonal elements are assumed to be correlations and converted to covariances

digits

if greater than zero, matrix is passed to signif (along with digits) prior to returning

Details

bmat makes a block matrix. cmat makes a correlation matrix. dmat makes a diagonal matrix.

See Also

Examples

dmat(1,2,3)/10

bmat(0.5,0.01,0.2)

cmat(0.5, 0.87,0.2)

mrgsolve

Simulate from ODE-Based Models

v0.11.1
GPL (>= 2)
Authors
Kyle T Baron [aut, cre] (<https://orcid.org/0000-0001-7252-5656>), Bill Gillespie [ctb], Charles Margossian [ctb], Devin Pastoor [ctb], Bill Denney [ctb] (<https://orcid.org/0000-0002-5759-428X>), Dilawar Singh [ctb], Felicien Le Louedec [ctb] (<https://orcid.org/0000-0003-3699-2729>), Timothy Waterhouse [ctb] (<https://orcid.org/0000-0002-0954-9660>), Metrum Research Group [cph]
Initial release

We don't support your browser anymore

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