MCMCglmm (version 2.28)

evalDtensor: 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

See Also

Dtensor, D

Examples

Run this code
# NOT RUN {
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 DataCamp Workspace