powered by
Evaluates a list of (mixed) partial derivatives
evalDtensor(x, mu, m=1)
tensor
unevaluated (list) of expression(s)
values at which the derivatives are evaluated: names need to match terms in x
order of derivative
Jarrod Hadfield j.hadfield@ed.ac.uk
Dtensor, D
Dtensor
D
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