pascal.matrix {matrixcalc}R Documentation

Pascal matrix

Description

This function returns an n by n Pascal matrix.

Usage

pascal.matrix(n)

Arguments

n

Order of the matrix

Value

A matrix.

Note

~~further notes~~ If the argument n is not a positive integer, the function presents an error message and stops.

Author(s)

Frederick Novomestky fnovomes@poly.edu

References

Magnus, J. R. and H. Neudecker (1999) Matrix Differential Calculus with Applications in Statistics and Econometrics, Second Edition, John Wiley.

Examples

p <- pascal.matrix( 4 )

[Package matrixcalc version 1.0-1 Index]