# NOT RUN {
## import SensMixed package
library(SensMixed)
## convert some variables to factors in TVbo
TVbo <- convertToFactors(TVbo, c("Assessor", "Repeat", "Picture"))
## run automated selection process
res <- sensmixed(c("Coloursaturation", "Colourbalance"),
prod_effects = c("TVset", "Picture"),
assessor="Assessor", data=TVbo, MAM=TRUE)
res
## run MAManalysis function
res_MAM <- sensmixed(c("Coloursaturation", "Colourbalance"),
prod_effects=c("TVset"), replication="Repeat",
assessor="Assessor", data=TVbo, control = list(MAM_balanced=TRUE))
## print is not yet implemented
## get anova part
res_MAM[[3]][,,1]
## compare with the general implementation
res <- sensmixed(c("Coloursaturation", "Colourbalance"),
prod_effects=c("TVset"),
assessor="Assessor", data=TVbo, MAM=TRUE,
control = list(reduce.random=FALSE))
res$fixed
# }
# NOT RUN {
res <- sensmixed(names(TVbo)[5:(ncol(TVbo) - 1)],
prod_effects=c("TVset", "Picture"),
assessor="Assessor",
data=TVbo)
plot F and Chi square values
plot(res)
# }
Run the code above in your browser using DataLab