Skip to content
Snippets Groups Projects
init_variable.Rd 723 B
Newer Older
Arnaud Duvermy's avatar
Arnaud Duvermy committed
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulation_initialization.R
\name{init_variable}
\alias{init_variable}
\title{Initialize variable}
\usage{
init_variable(
  list_var = c(),
  name = "myVariable",
  mu = c(2, 3),
  sd = NA,
  level = NA
)
}
\arguments{
\item{list_var}{Either c() or output of init_variable}

\item{name}{Variable name}

\item{mu}{Either a numeric value or a numeric vector (of length = level)}

\item{sd}{Either numeric value or NA}

\item{level}{Numeric value to specify the number of levels to simulate}
}
\value{
A list with initialized variables
}
\description{
Initialize variable
}
\examples{
init_variable(name = "my_varA", mu = 2, sd = 9, level = 200)
}