Skip to contents

construct a constant term

Usage

block_term(
  varname,
  blockids,
  expanded_blockids,
  mat,
  type = c("runwise", "global")
)

Arguments

varname

the name of the term

blockids

the ordered sequence of blockids

expanded_blockids

the vector of blockids expanded by run

mat

the matrix of covariates

type

the block variable type: 'runwise' or 'global'