evalJointFunction | R Documentation |
Evaluates a "jointmotbf"
object at a specific point.
evalJointFunction(P, values)
P |
A |
values |
A list with the name of the variables equal to the values to be evaluated. |
If all the variables in the equation are evaluated then a "numeric"
value
is returned. Otherwise, an "motbf"
object or a "jointmotbf"
object is returned.
#' ## 1. EXAMPLE ## Dataset with 2 variables X <- data.frame(rnorm(100), rexp(100)) ## Joint function dim <- c(3,3) # dim <- c(5,4) param <- parametersJointMoTBF(X, dimensions = dim) P <- jointMoTBF(param) P ## Evaluation nVariables(P) val <- list(x = -1.5, y = 3) evalJointFunction(P, values = val) val <- list(x = -1.5) evalJointFunction(P, values = val) val <- list(y = 3) evalJointFunction(P, values = val) ############################################################################## ## MORE EXAMPLES ############################################################# ############################################################################## ## Dataset with 3 variables X <- data.frame(rnorm(100), rexp(100), rnorm(100, 1)) ## Joint function dim <- c(2,1,3) param <- parametersJointMoTBF(X, dimensions = dim) P <- jointMoTBF(param) P ## Evaluation nVariables(P) val <- list(x = 0.8, y = -2.1, z = 1.2) evalJointFunction(P, values = val) val <- list(x = 0.8, z = 1.2) evalJointFunction(P, values = val) val <- list(y = -2.1) evalJointFunction(P, values = val) val <- list(y = -2.1) evalJointFunction(P, values = val)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.