# NOT RUN {
## For a single node process where
## y_1 = y_2 + y_3
C <- matrix(c(1,-1,-1), nrow= 1,ncol = 3)
constrainProcess(C = C)
## For a 2 node process with 1 input and 3 outputs
## as shown in \dontrun{vignette("Two_Node_Process", package = "BayesMassBal")}
C <- matrix(c(1,-1,0,-1,0,0,1,-1,0,-1), byrow = TRUE, ncol = 5, nrow = 2)
constrainProcess(C = C)
## Obtaining the constraints from a .csv file
C <- constrainProcess(file =
system.file("extdata", "twonode_constraints.csv",package = "BayesMassBal"))
# }
Run the code above in your browser using DataLab