R/fit.R

Defines functions fit

Documented in fit

#' Fitting model
#'
#' @param X design matrix
#' @param w parameter vector
#'
#' @return vector of predicted values
fit <- function(X, w) {
  f <- X %*% w
  return(f)
}
andreabecsek/panda documentation built on Jan. 2, 2020, 1:56 p.m.