Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • c790f1e
  • /
  • nScreeObjectMethods.rd
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:eb3d660f845cc82062e5d79c19f4dc48574206b8
directory badge Iframe embedding
swh:1:dir:c790f1e33a5232044be137009743a5c8e7692d25
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
nScreeObjectMethods.rd
\name{nScreeObjectMethods}
\alias{is.nScree}
\alias{plot.nScree}
\alias{print.nScree}
\alias{summary.nScree}


\title{ Utility Functions for nScree Class Objects}

\description{
 Utility functions for \code{nScree} class objects. Some of these functions are
 already implemented in the \code{nFactors} package, but are easier to use with
 generic functions like these.
 }

\usage{
 \method{is}{nScree}     (object)
 \method{plot}{nScree}   (x, ...)
 \method{print}{nScree}  (x, ...)
 \method{summary}{nScree}(object, ...)
 }

\arguments{
  \item{x}{         nScree: an object of the class nScree}
  \item{object}{    nScree: an object of the class nScree}
  \item{...}{       variable: additionnal parameters to give to the \code{print}
                    function with \code{print.nScree}, the \code{plotnScree} with
                    \code{plot.nScree} or to the \code{summary} function with
                    \code{summary.nScree}}
 }


\value{
 Generic functions for the nScree class:

  \item{is.nScree}{       logical: is the object of the class nScree? }
  \item{plot.nScree }{    graphic: plots a figure according to the \code{plotnScre}
                          function}
  \item{print.nScree }{   numeric: vector of the number of components/factors to
                          retain: same as the \code{Components} vector from the \code{nScree}
                          object}
  \item{summary.nScree }{ data.frame: details of the results from a nScree analysis:
                          same as the \code{Analysis} data.frame from the \code{nScree}
                          object, but with easier control of the
                          number of decimals with the \code{digits} parameter}
 }

\seealso{
 \code{\link{plotuScree}}, 
 \code{\link{plotnScree}},
 \code{\link{parallel}},
 \code{\link{plotParallel}},  
 }

\references{ 
 Raiche, G., Riopel, M. and Blais, J.-G. (2006). \emph{Non graphical solutions for the Cattell's scree test}.
  Paper presented at the International Annual meeting of the Psychometric Society, Montreal.
  [\url{http://www.er.uqam.ca/nobel/r17165/RECHERCHE/COMMUNICATIONS/}]
 }

\author{ 
    Gilles Raiche \cr
    Centre sur les Applications des Modeles de Reponses aux Items (CAMRI) \cr
    Universite du Quebec a Montreal\cr
    \email{raiche.gilles@uqam.ca}, \url{http://www.er.uqam.ca/nobel/r17165/}
}

\examples{
## INITIALISATION
 data(dFactors)                      # Load the nFactors dataset
 attach(dFactors)
 vect         <- Raiche              # Use the example from Raiche
 eigenvalues  <- vect$eigenvalues    # Extract the observed eigenvalues
 nsubjects    <- vect$nsubjects      # Extract the number of subjects
 variables    <- length(eigenvalues) # Compute the number of variables
 rep          <- 100                 # Number of replications for the parallel analysis
 cent         <- 0.95                # Centile value of the parallel analysis

## PARALLEL ANALYSIS (qevpea for the centile criterion, mevpea for the mean criterion)
 aparallel    <- parallel(var     = variables,
                          subject = nsubjects, 
                          rep     = rep, 
                          cent    = cent
                          )$eigen$qevpea  # The 95 centile

## NOMBER OF FACTORS RETAINED ACCORDING TO DIFFERENT RULES 
 results      <- nScree(x=eigenvalues, aparallel=aparallel)
 
 is.nScree(results)
 results
 summary(results)
 
## PLOT ACCORDING TO THE nScree CLASS 
 plot(results)
 }

\keyword{ multivariate }

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top