mirror of
https://github.com/jenslaufer/RPresence.git
synced 2025-12-17 16:44:41 -06:00
26 lines
872 B
R
26 lines
872 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/R-PRES.r
|
|
\name{simplify_dm}
|
|
\alias{simplify_dm}
|
|
\title{simplify design matrix by replacing all individual covariates which are all one or zero
|
|
with '1' or '0' in the design matrix. This makes the design matrix much easier to read
|
|
and faster for the model.
|
|
\code{simplify_dm} Replaces ind. covariates which are all 0 or 1, with 0 or 1.}
|
|
\usage{
|
|
simplify_dm(dm, pao)
|
|
}
|
|
\arguments{
|
|
\item{dm}{model design matrix.}
|
|
|
|
\item{pao}{pao file created by occMod.???}
|
|
}
|
|
\value{
|
|
simplified design matrix
|
|
}
|
|
\description{
|
|
simplify design matrix by replacing all individual covariates which are all one or zero
|
|
with '1' or '0' in the design matrix. This makes the design matrix much easier to read
|
|
and faster for the model.
|
|
\code{simplify_dm} Replaces ind. covariates which are all 0 or 1, with 0 or 1.
|
|
}
|