Newer
Older
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulation_initialization.R
\name{add_interaction}
\alias{add_interaction}
\title{Add interaction}
\usage{
}
\arguments{
\item{list_var}{A list of variables (already initialized)}
\item{between_var}{A vector of variable names to include in the interaction}
\item{sd}{Either numeric value or NA. Use to specify range of effect sizes.}
\item{mu}{Either a numeric value or a numeric vector (of length = level). Default : 0. Not recommended to modify.}
}
\value{
A list with initialized interaction
}
\description{
Add interaction
}
\examples{
init_variable(name = "myvarA", sd = 3, level = 200) \%>\%
init_variable(name = "myvarB", sd = 0.2, level = 2 ) \%>\%
add_interaction(between_var = c("myvarA", "myvarB"), sd = 2)