MyNixOS website logo
Description

Sequential Normal Scores in Statistical Process Management.

The methods discussed in this package are new non-parametric methods based on sequential normal scores 'SNS' (Conover et al (2017) <doi:10.1080/07474946.2017.1360091>), designed for sequences of observations, usually time series data, which may occur singly or in batches, and may be univariate or multivariate. These methods are designed to detect changes in the process, which may occur as changes in location (mean or median), changes in scale (standard deviation, or variance), or other changes of interest in the distribution of the observations, over the time observed. They usually apply to large data sets, so computations need to be simple enough to be done in a reasonable time on a computer, and easily updated as each new observation (or batch of observations) becomes available. Some examples and more detail in 'SNS' is presented in the work by Conover et al (2019) <arXiv:1901.04443>.

Sequential Normal Scores

The methods discussed in this package are new nonparametric methods based on sequential normal scores (SNS), designed for sequences of observations, usually time series data, which may occur singly or in batches, and may be univariate or multivariate. These methods are designed to detect changes in the process, which may occur as changes in location (mean or median), changes in scale (standard deviation, or variance), or other changes of interest in the distribution of the observations, over the time observed. They usually apply to large data sets, so computations need to be simple enough to be done in a reasonable time on a computer, and easily updated as each new observation (or batch of observations) becomes available.

Installation

You can install the released version of SNS from CRAN with:

install.packages("SNSchart")

or install from the package hosted in github.

install_github("LuisBenavides/SNSchart")

Note: To use install_github it is needed the library devtools. ## Univariate Analysis

Using SNS function

The reference sample Y and the monitoring sample X.

Y = c(10,20,30,40,50,60,70,80,90,100)
X = c(30, 35, 45)

Example of conditionsl SNS with a reference sample Y

Y = c(10,20,30,40,50,60,70,80,90,100)
X = c(30, 35, 45)
theta = 40
Ftheta = 0.5
sample.id = c("a", "b", "c")
SNS(X = X, X.id = sample.id, Y = Y, theta = theta, Ftheta = Ftheta)

Output

#> $coefficients
#> $coefficients$n
#> [1] 1
#> 
#> $coefficients$chart
#> [1] "Shewhart"
#> 
#> $coefficients$chart.par
#> [1] 3
#> 
#> 
#> $R
#> [1] 3.5 5.0 1.0
#> 
#> $Z
#> [1] -0.52440051 -0.31863936  0.08964235
#> 
#> $X.id
#> [1] "a" "b" "c"
#> 
#> $UCL
#> [1] 3 3 3
#> 
#> $LCL
#> [1] -3 -3 -3
#> 
#> $scoring
#> [1] "Z"
#> 
#> attr(,"class")
#> [1] "SNS"

Example of unconditionsl SNS with a reference sample Y

Y = c(10,20,30,40,50,60,70,80,90,100)
X = c(30, 35, 45)
theta = NULL
Ftheta = NULL
sample.id = c("a", "b", "c")
SNS(X = X, X.id = sample.id, Y = Y, theta = theta, Ftheta = Ftheta)

Output

#> $coefficients
#> $coefficients$n
#> [1] 1
#> 
#> $coefficients$chart
#> [1] "Shewhart"
#> 
#> $coefficients$chart.par
#> [1] 3
#> 
#> 
#> $R
#> [1] 3.5 5.0 7.0
#> 
#> $Z
#> [1] -0.6045853 -0.3186394  0.0000000
#> 
#> $X.id
#> [1] "a" "b" "c"
#> 
#> $UCL
#> [1] 3 3 3
#> 
#> $LCL
#> [1] -3 -3 -3
#> 
#> $scoring
#> [1] "Z"
#> 
#> attr(,"class")
#> [1] "SNS"

Example of conditional SNS without a reference sample Y

Y = NULL
X = c(30, 35, 45)
theta = 40
Ftheta = 0.5
sample.id = c("a", "b", "c")
SNS(X = X, X.id = sample.id, Y = Y, theta = theta, Ftheta = Ftheta)

Output

#> $coefficients
#> $coefficients$n
#> [1] 1
#> 
#> $coefficients$chart
#> [1] "Shewhart"
#> 
#> $coefficients$chart.par
#> [1] 3
#> 
#> 
#> $R
#> [1] 1.5 2.0 1.0
#> 
#> $Z
#> [1] -0.6744898 -0.3186394  0.6744898
#> 
#> $X.id
#> [1] "a" "b" "c"
#> 
#> $UCL
#> [1] 3 3 3
#> 
#> $LCL
#> [1] -3 -3 -3
#> 
#> $scoring
#> [1] "Z"
#> 
#> attr(,"class")
#> [1] "SNS"

Example of unconditional SNS without a reference sample Y

Y = NULL
X = c(30, 35, 45)
theta = NULL
Ftheta = NULL
sample.id = c("a", "b", "c")
SNS(X = X, X.id = sample.id, Y = Y, theta = theta, Ftheta = Ftheta)

Output

#> $coefficients
#> $coefficients$n
#> [1] 1
#> 
#> $coefficients$chart
#> [1] "Shewhart"
#> 
#> $coefficients$chart.par
#> [1] 3
#> 
#> 
#> $R
#> [1] 1 2 3
#> 
#> $Z
#> [1] 0.0000000 0.6744898 0.9674216
#> 
#> $X.id
#> [1] "a" "b" "c"
#> 
#> $UCL
#> [1] 3 3 3
#> 
#> $LCL
#> [1] -3 -3 -3
#> 
#> $scoring
#> [1] "Z"
#> 
#> attr(,"class")
#> [1] "SNS"
Metadata

Version

1.4.0

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows