mat.banded | R Documentation |
Takes the first value in x
and places it down the diagonal of the
matrix
. Takes the second value in x
and places it
down the first subdiagonal, both below and above the diagonal of the
matrix
. The third value is placed in the second subdiagonal
and so on, until the bands for which there are elements in x
have
been filled. All other elements in the matrix
will be zero.
mat.banded(x, nrow, ncol)
x |
A |
nrow |
The number of rows in the banded |
ncol |
The number of columns in the banded |
An nrow \times ncol
matrix
.
Chris Brien
mat.cor
, mat.corg
, mat.ar1
, mat.ar2
, mat.ar3
,
mat.sar2
, mat.exp
, mat.gau
,
mat.ma1
, mat.ma2
, mat.arma
mat.I
, mat.J
m <- mat.banded(c(1,0.6,0.5), 5,5)
m <- mat.banded(c(1,0.6,0.5), 3,4)
m <- mat.banded(c(1,0.6,0.5), 4,3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.