Title: | Satisfaction Analysis using Tetraclasse Model and Llosa Matrix |
---|---|
Description: | The satisfaction Analysis using the tetraclasse model from Sylvie Llosa. Llosa (1997) <http://www.jstor.org/stable/40592578>. |
Authors: | vincent guyader |
Maintainer: | vincent guyader <[email protected]> |
License: | GPL-3 |
Version: | 0.1.21 |
Built: | 2024-11-13 04:14:32 UTC |
Source: | https://github.com/cran/tetraclasse |
generate some random data
gen_avis(N)
gen_avis(N)
N |
number of person |
base <- gen_avis(50)
base <- gen_avis(50)
plot the Llosa matrix
gen_llosa(dataset, borne = FALSE, annotate = TRUE, annotatetext = c("Secondaire", " Plus", "Basique", "Clef"))
gen_llosa(dataset, borne = FALSE, annotate = TRUE, annotatetext = c("Secondaire", " Plus", "Basique", "Clef"))
dataset |
the dataset to use |
borne |
booleen do you want xlim and ylim |
annotate |
booleen do you want annotation |
annotatetext |
annotation text |
library(tetraclasse) gen_avis(100) %>% prepare_base() %>% gen_llosa()
library(tetraclasse) gen_avis(100) %>% prepare_base() %>% gen_llosa()
reshape the base
prepare_base(base, satis_col = "satis")
prepare_base(base, satis_col = "satis")
base |
the base to reshape |
satis_col |
satisfaction column name |
base <- gen_avis(150) prepare_base(base)
base <- gen_avis(150) prepare_base(base)
Satisfaction Analysis - Tetraclasse Model And Llosa Matrix.
library(tetraclasse) # generate an example dataset with 150 respondant base <- gen_avis(150) #prepare the dataset base <- prepare_base(base) # construct the Llosa matrix gen_llosa(base) if(require("dplyr")){ gen_avis(5000) %>% sample_n(50,replace = TRUE)%>% prepare_base() %>% gen_llosa() gen_avis(500) %>% prepare_base() %>% gen_llosa() }
library(tetraclasse) # generate an example dataset with 150 respondant base <- gen_avis(150) #prepare the dataset base <- prepare_base(base) # construct the Llosa matrix gen_llosa(base) if(require("dplyr")){ gen_avis(5000) %>% sample_n(50,replace = TRUE)%>% prepare_base() %>% gen_llosa() gen_avis(500) %>% prepare_base() %>% gen_llosa() }