R/outer.o.f.R

Defines functions outer.o.f

# Internal calculation function outer.ome.f
# 
# Function is internal and not to be called by the user.

outer.o.f <- function(beta.length, weights)
{
  le <- length(weights)
  Outer1 <- matrix(nrow = beta.length, ncol = beta.length, 0)
  
  Outer1[1,1] <- sum(weights[-le])
  Outer1[-1,1] <- Outer1[1, -1] <- diag(Outer1)[-1] <- weights[-le]
  
  Outer2 <- matrix(nrow = beta.length, ncol = beta.length, 1)
  Outer2[-1,1] <- Outer2[1, -1] <- -1
  Outer2 <- weights[le]*Outer2
  
  Outer <- Outer1 + Outer2
  return(Outer)
}

Try the unifiedWMWqPCR package in your browser

Any scripts or data that you put into this service are public.

unifiedWMWqPCR documentation built on Nov. 8, 2020, 6:05 p.m.