# Ptensor

From MCMCglmm v2.29
by Jarrod Hadfield

##### Tensor of Sample (Mixed) Central Moments

Forms a tensor of sample (mixed) central moments

- Keywords
- array

##### Usage

`Ptensor(x, k)`

##### Arguments

- x
matrix; traits in columns samples in rows

- k
kth central moment

##### Value

tensor

##### Examples

```
# NOT RUN {
n<-1000
y<-matrix(rnorm(n), n/2, 2)
Ptensor(y,2)
cov(y)*((n-1)/n)
# }
```

*Documentation reproduced from package MCMCglmm, version 2.29, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.