R: Evaluates a list of (mixed) partial derivatives

evalDtensor {MCMCglmm} | R Documentation

## Evaluates a list of (mixed) partial derivatives

### Description

Evaluates a list of (mixed) partial derivatives

### Usage

    evalDtensor(x, mu, m=1)

### Arguments

`x` | unevaluated (list) of expression(s)
`mu` | values at which the derivatives are evaluated: names need to match terms in x
`m` | order of derivative

### Value

tensor

### Author(s)

Jarrod Hadfield j.hadfield@ed.ac.uk

### See Also

`Dtensor`, `D`

### Examples

    f<-expression(beta_1 + time*beta_2+u)
    Df<-Dtensor(f, eval=FALSE, m=2)
    evalDtensor(Df, mu=data.frame(beta_1=0.5, beta_2=1, time=3, u=2.3))
    Dtensor(f, mu=c(1,3,1,2.3), m=2)

[Package MCMCglmm version 2.32 Index]