File: simule.Rd

package info (click to toggle)
r-cran-factominer 2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,904 kB
  • sloc: sh: 4; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 1,121 bytes parent folder | download | duplicates (4)
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
26
27
28
29
30
31
32
33
34
\name{simule}

\alias{simule}

\title{Simulate by bootstrap}

\description{Simulate by bootstrap
}

\usage{
simule(data, nb.simul)
}

\arguments{
  \item{data}{A data frame from which the rows are the original data from which the simualte data are calculated (by the average
  of a bootstrap sample. The columns corresponds to the variables for which the simulation should be done. The first column must
  be a factor allowing to group the rows. A bootstrap simulation is done for each level of this factor.}
  \item{nb.simul}{The number of simulations.}
}

\details{
The simulation is independently done for each level of the factor. The number of rows can be different for each levels.

}

\value{
\item{mean}{Data.frame with all the levels of the factor variable, and for each variable, the mean of the original data.}
\item{simul}{Data.frame with all the levels of the factor variable, and for each variable, the nb.simul bootstrap simulations.}
\item{simul.mean}{Data.frame with all the levels of the factor variable, and for each variable, the mean of the simulated data.}
}

\author{Jeremy Mazet}

\keyword{dplot}