POV: Partition of Variation

Description Usage Arguments Details Value Examples

View source: R/pov.R

Description

Partition of Variation

Usage

1
POV(Formula, Data, Complete = FALSE)

Arguments

Formula

an object of class "formula" (or one that can be coerced to that class): a symbolic description of the model to be fitted. The details of model specification are given under ‘Details’.

Data

a data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model.

Complete

(Default False) an optional boolean to change the result output. True will give you a table including between, within and total summary values. False will only give you the variance components themselves.

Details

Models for pov are specified symbolically. A typical model has the form response ~ terms where response is the (numeric) response vector and terms is a series of terms which specifies a linear predictor for response. A terms specification of the form first + second indicates all the terms in first together with all the terms in second with duplicates removed. A specification of the form first:second indicates the set of terms obtained by taking the interactions of all terms in first with all terms in second. The specification first*second indicates the cross of first and second. This is the same as first + second + first:second.

Variables on the right hand side of the model should be converted to factors before running.

Between variance is the variance due to change in Mean. Within variance is the variance due to the change in StdDev. Common variance is the minimum variance common to all categories.

Value

POV returns a table of variance components.

Examples

1
POV(Response ~ Machine * Metrology, Data = dt, Complete = TRUE)

Example output

                                Variance     StdDev % of total
Between Total               0.0032253086 0.05679180   7.056043
  Between Machine           0.0003446502 0.01856476   0.753995
  Between Metrology         0.0017952675 0.04237060   3.927526
  Between Machine:Metrology 0.0010853909 0.03294527   2.374522
Within Total                0.0424845679 0.20611785  92.943957
  Within Machine            0.0051391764 0.07168805  11.243033
  Within Metrology          0.0302773059 0.17400375  66.237995
  Within Machine:Metrology  0.0070680857 0.08407191  15.462929
  Common                    0.0000000000 0.00000000   0.000000
Total                       0.0457098765 0.21379868 100.000000

POV documentation built on Nov. 16, 2020, 5:07 p.m.