Learn R Programming

MCMCglmm (version 2.36)

evalDtensor: Evaluates a list of (mixed) partial derivatives

Description

Evaluates a list of (mixed) partial derivatives

Usage

evalDtensor(x, mu, m=1)

Value

tensor

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

Author

Jarrod Hadfield j.hadfield@ed.ac.uk

See Also

Dtensor, D

Examples

Run this code
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)

Run the code above in your browser using DataLab