File: break_up_matrix_term.Rd

package info (click to toggle)
r-cran-projpred 2.0.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 740 kB
  • sloc: cpp: 355; sh: 14; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 984 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper_formula.R
\name{break_up_matrix_term}
\alias{break_up_matrix_term}
\title{Sometimes there can be terms in a formula that refer to a matrix instead of a
single predictor. Because we can handle search_terms of predictors, this
function breaks the matrix term into individual predictors to handle
separately, as that is probably the intention of the user.}
\usage{
break_up_matrix_term(formula, data)
}
\arguments{
\item{formula}{A formula for a valid model.}

\item{data}{The original data frame with a matrix as predictor.}
}
\value{
a  list containing the expanded formula and the expanded data frame.
}
\description{
Sometimes there can be terms in a formula that refer to a matrix instead of a
single predictor. Because we can handle search_terms of predictors, this
function breaks the matrix term into individual predictors to handle
separately, as that is probably the intention of the user.
}