Nothing
#' @export
Leontief_mA <- function(A.pre, p) {
# computing Leontief demand structure matrix in a monetary economy
A <- A.pre
nonnegativeA <- A
nonnegativeA[nonnegativeA < 0] <- 0
Indx <- which(A < 0, arr.ind = T)
for (k in 1:nrow(Indx)) {
A[Indx[k, 1], Indx[k, 2]] <- t(p) %*% nonnegativeA[, Indx[k, 2]] / (-A[Indx[k, 1], Indx[k, 2]])
}
A
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.