
Last chance! 50% off unlimited learning
Sale ends in
scaleDiagnosis
provides a number of diagnostics for a scale
(an aggregative measure consisting of several items), and
scaleDiagnosisToPDF takes the resulting object and generates a PDF
file, which is then saved to disk.
scaleDiagnosisToPDF(scaleDiagnosisObject,
docTitle = "Scale diagnosis", docAuthor = "Author",
pdfLatexPath, rnwPath=getwd(),
filename = "scaleDiagnosis",
digits=2,
rMatrixColsLandscape = 6,
pboxWidthMultiplier = 1,
scatterPlotBaseSize = 4,
maxScatterPlotSize = NULL,
pageMargins=15,
pval=TRUE)
An object generated by scaleDiagnosis
.
The title of the PDF file (printed on the first page).
The author to show in the PDF file (printed on the first page).
The path to PdfLaTex. This file is part of a LaTeX installation that
creates a pdf out of a .tex file. See rnwString
for more information.
The path where the temporary files will be stored.
Filename of the PDF (".pdf" is appended).
Number of digits to show.
This number determines when the page(s) in the PDF is/are rotated; pages with matrices that have this number of columns or more are rotated.
Passed on to (unexported method) print.rMatrix
.
Basic size of scatterplots in centimeters. If this number, multiplied by the number of items (i.e. columns/rows in scattermatrix) is larger than maxScatterPlotSize, it is ignored.
Maximum size of scatterplots; automatically calculated if NULL.
Margins of landscape pages in millimeters.
Whether to print p-values using the p-value formatting.
Passed on to (unexported method) print.rMatrix
.
Nothing is returned; the file is printed to disk.
This functon generates a PDF file from a scaleDiagnosis
object.
scaleDiagnosis
generates an object with several useful statistics
and a plot to assess how the elements (usually items) in a scale relate to each
other, such as Cronbach's Alpha, omega, the Greatest Lower Bound, a factor
analysis, and a correlation matrix.
# NOT RUN {
# }
# NOT RUN {
### Generate a datafile to use
exampleData <- data.frame(item1=rnorm(100));
exampleData$item2 <- exampleData$item1+rnorm(100);
exampleData$item3 <- exampleData$item1+rnorm(100);
exampleData$item4 <- exampleData$item2+rnorm(100);
exampleData$item5 <- exampleData$item2+rnorm(100);
### Use all items and create object
scaleDiagnosisObject <- scaleDiagnosis(dat=exampleData);
### Generate a PDF
scaleDiagnosisToPDF(scaleDiagnosisObject);
# }
Run the code above in your browser using DataLab