SpectrumScore-class {transite} | R Documentation

## An S4 class to represent a scored spectrum

### Description

An S4 class to represent a scored spectrum

Getter Method spectrumAdjRSquared

Getter Method spectrumDegree

Getter Method spectrumResiduals

Getter Method spectrumSlope

Getter Method spectrumFStatistic

Getter Method spectrumFStatisticPValue

Getter Method spectrumConsistencyScore

Getter Method spectrumConsistencyScorePValue

Getter Method spectrumConsistencyScoreN

### Usage

    spectrumAdjRSquared(object)

    ## S4 method for signature 'SpectrumScore'
    spectrumAdjRSquared(object)

    spectrumDegree(object)

    ## S4 method for signature 'SpectrumScore'
    spectrumDegree(object)

    spectrumResiduals(object)

    ## S4 method for signature 'SpectrumScore'
    spectrumResiduals(object)

    spectrumSlope(object)

    ## S4 method for signature 'SpectrumScore'
    spectrumSlope(object)

    spectrumFStatistic(object)

    ## S4 method for signature 'SpectrumScore'
    spectrumFStatistic(object)

    spectrumFStatisticPValue(object)

    ## S4 method for signature 'SpectrumScore'
    spectrumFStatisticPValue(object)

    spectrumConsistencyScore(object)

    ## S4 method for signature 'SpectrumScore'
    spectrumConsistencyScore(object)

    spectrumConsistencyScorePValue(object)

    ## S4 method for signature 'SpectrumScore'
    spectrumConsistencyScorePValue(object)

    spectrumConsistencyScoreN(object)

    ## S4 method for signature 'SpectrumScore'
    spectrumConsistencyScoreN(object)

    ## S4 method for signature 'SpectrumScore'
    show(object)

    ## S4 method for signature 'SpectrumScore,ANY'
    plot(x)

### Arguments

`object` | SpectrumScore object
`x` | SpectrumScore object

### Value

Object of type SpectrumScore

### Slots

`adj.r.squared`

  adjusted R^2 of polynomial model

`degree`

  degree of polynomial (integer between 0 and 5)

`residuals`

  residuals of the polynomial model

`slope`

  coefficient of the linear term of the polynomial model (spectrum "direction")

`f.statistic`

  F statistic from the F test used to determine the degree of the polynomial model

`f.statistic.p.value`

  p-value associated with the F statistic

`consistency.score`

  raw local consistency score of the spectrum

`consistency.score.p.value`

  p-value associated with the local consistency score

`consistency.score.n`

  number of permutations performed to calculate p-value of local consistency score (permutations performed before early stopping criterion reached)

`plot`

  spectrum plot

### Examples

    new("SpectrumScore", adj.r.squared = 0,
        degree = 0L,
        residuals = 0,
        slope = 0,
        f.statistic = 0,
        f.statistic.p.value = 1,
        consistency.score = 1,
        consistency.score.p.value = 1,
        consistency.score.n = 1000L,
        plot = NULL
    )

[Package transite version 1.0.2 Index]