ReadMe:

This is a copy of the R script used for latent class analysis (LCA). The R script was composed by Prof. Simeon Yates of University of Liverpool who ran it the survey dataset generated and owned by the ARHC funded project ‘Beyond the Multiplex: Audiences for Specialised Film in English Regions’. 
This dataset was deposited within the University of Glasgow data repository by Matthew Hanchard, Research Associate in the School of Social and Political Sciences. It was deposited as part of the work carried out for the arts and humanities research council (AHRC) funded project ‘Beyond the Multiplex: Audiences for specialised film in English regions’ – UK Research and innovation (UKRI) funding reference: AH/P005780/I. For further details about the project, please contact Prof. Bridgette Wessels of University of Glasgow, Principle Investigator of Beyond the Multiplex.  
The University of Glasgow has full permission to store the R script as a dataset and to make it open access for public re-use without restriction. The R code and all modules used within it are open-source. 
This dataset is also stored on the data repository managed by the Digital Humanities Institute (DHI) based at the University of Sheffield: https://www.dhi.ac.uk/san/btm/Data_122018/Survey%20data%20processed%20using%20R.pdf
The dataset is an R script and will require R to be installed on any machine using it. It also requires the following R libraries to be installed:
library("reshape2")
library("plyr")
library("dplyr")
library("poLCA")
library("ggplot2")
library("ggparallel")
library("igraph")
library("tidyr")
library("knitr")
library("xtable")
library("forcats")
library("lattice")
library("Hmisc")
library("corrplot")
library("haven")
library("psych")
library("powerAnalysis")
library("RcmdrMisc")
library("logistf")
library("gmodels")
library("generalhoslem")