Ptensor | R Documentation |
Forms a tensor of sample (mixed) central moments
Ptensor(x, k)
x |
matrix; traits in columns samples in rows |
k |
kth central moment |
tensor
Jarrod Hadfield j.hadfield@ed.ac.uk
n<-1000
y<-matrix(rnorm(n), n/2, 2)
Ptensor(y,2)
cov(y)*((n-1)/n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.