formulaDeriv(inFormula, derivVar, data, nDerivs = 1)
formula
and derivVar
arguments.
formulaDeriv
returns a matrix whose dimensions are the number of observations in data
and the number of variables on the right hand side of formula
. Each row is the derivative of formula
evaluated at the corresponding observation in data
npqr