Nothing
calculate_reduced_a <- function(Zmat=NULL, varG=NULL, P=NULL, MMtsqrt=NULL, y=NULL, quiet=TRUE)
{
## internal function to AM
if( !(nrow(P) == length(y))){
message(" Error: there is a problem with the dimensions of P, and/or the vector y.")
message(" The dimensions are: \n")
message(" dim(P) = ", dim(P), "\n")
message(" length(y) = ", length(y), "\n")
return(NULL)
}
if(is.null(varG)){
message(" VarG must be specified.")
return(NULL)
}
if(is.null(P)){
message(" P must be specified")
return(NULL)
}
if(is.null(y)){
message(" y must be specified")
return(NULL)
}
if(is.null(Zmat)){
a <- varG * MMtsqrt %*% P %*% y
} else {
a <- varG * MMtsqrt %*% t(Zmat) %*% P %*% y
}
return(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.