title | author | date |
---|---|---|
Package: R4SPISE2018 |
Hervé Abdi |
`October 28, 2018` |
A set of data sets, scripts, and vignettes used for the Advanced Workshop of the 2018 SPISE Meeting that took place in Da Nang, Vietnam: July 20 to July 30, 2018.
Prior to installing the R4SPISE2018
package,
we need to install some other packages (mostly from Github
).
# decomment the line below if devtools is not yet installed
# install.packages('devtools')
install.packages('factoextra')
devtools::install_github('HerveAbdi/PTCA4CATA')
devtools::install_github('HerveAbdi/DistatisR')
devtools::install_github('HerveAbdi/data4PCCAR')
To install the package R4SPISE2018
, with devtools
older than version 2.0,
use the following R
-command:
# install.packages('devtools')
# decomment this line if devtools is not yet installed
devtools::install_github('HerveAbdi/R4SPISE2018',
dependencies = TRUE, # use it first time only, comment after
build_vignettes = TRUE) # to get the vignettes
The installation of the "dependent" packages can take some time and building the vignettes can take also a bit of time to build: So, be patient!
IMPORTANT: From version 2.0 to 2.1, devtools has changed its options and now
the parameter build_vignettes
is (silently) ignored. This option is now integrated
in the parameter build_opts
which passes options for CMD build
and which, by default
include the following options build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes")
. However, versions of devtools > 2.2 seems to have
resinstated the build_vignettes
option.
So
with devtools
version 2.0 or more recent,
the option build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes")
needs to be eliminated in the new call to devtools
and replaced
by the new option build_opts
as:
# install.packages('devtools')
# decomment the line above if devtools is not yet installed
install_github("HerveAbdi/R4SPISE2018",
dependencies = TRUE, # use it first time only, comment after
build_opts = c("--no-resave-data", "--no-manual"), # Explicitely get the option
build_vignettes = TRUE) # to get the vignettes
The installation of the "dependent" packages can take some time and building the vignettes can take also a bit of time to build: So, be patient!
If you have forgotten to build the vignettes, you can build them with the command:
devtools::build_vignettes()
Again, be prepared to wait till the vignettes are built.
- Distatis: package
DistatisR
- Partial Triadic Correspondence Analysis (PTCA): package
PTCA4CATA
- Various helper functions for Multiple Correspondence Analysis from package
data4PCCAR
- Multiple Correspondence Analysis (MCA): package
ExPosition
ExPosition
can be downloaded fromCRAN
DistatisR
,PTCA4CATA
, anddata4PCCAR
should be downloaded fromHerveAbdi/Github
.
Correspondence Analysis for CATA:
Novices and experts evaluated 9 beers.
Multiple Correspondence Analysis:
Analyzing a survey about cheese
MCA with supplementary observations and variables; and new graphs.:
Analysis of a survey about attitudes towards fermented food answered by 373 participants (220 French and 183 Vietnamese). The demographics of the participants is used as supplementary variables. In addition, 30 participants from the SPISE2018 advanced workshop answered the questionnaire and are considered as supplementary observations.
This example also shows how to create PCA -like graphs for the qualitative variables: correlation, contributions, and bootstrap ratios. It uses several news functions from the package data4PCCAR
(see HerveAbdi/data4PCCAR
fro, Github
)
DISTATIS:
Analyzing a sorting task with different groups of assessors.
DISTATIS (with vocabulary and barycentric projections):
Analyzing a sorting task of pictures of Ramen Noodles with verbal description of the groups made by the participants.