Last data update: 2014.03.03

R: Simulate virtual panels
simulationR Documentation

Simulate virtual panels

Description

Simulate virtual panels

Usage

simulation(axeAFM, nbchoix = NULL, nbgroup = 1, nbsimul = 500)

Arguments

axeAFM

matrix

nbchoix

Number of panelists in a virtual Panel

nbgroup

Number of groups (by default 1 for a PCA)

nbsimul

number of simulations

Details

Called by the simulation procedure

Author(s)

Francois Husson

References

Husson, F., Le Dien, S. & Pages, J. (2005). Confidence ellipse for the sensory profiles obtained by Principal Components Analysis. Food Quality and Preference. 16 (3). pp. 245-250.

Examples

data(chocolates)
donnee <- cbind.data.frame(sensochoc[,c(1,4,5:18)])
axe <- construct.axes(donnee, scale.unit = TRUE)
simul <- simulation(axe)
plotellipse (simul, alpha = 0.05, eig = signif(axe$eig,4))

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(SensoMineR)
Loading required package: FactoMineR
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/SensoMineR/simulation.Rd_%03d_medium.png", width=480, height=480)
> ### Name: simulation
> ### Title: Simulate virtual panels
> ### Aliases: simulation
> ### Keywords: models internal
> 
> ### ** Examples
> 
> data(chocolates)
> donnee <- cbind.data.frame(sensochoc[,c(1,4,5:18)])
> axe <- construct.axes(donnee, scale.unit = TRUE)
Error in dev.new() : no suitable unused file name for pdf()
Calls: construct.axes -> dev.new
Execution halted