variance: Construct variance

Description Usage Arguments Examples

Description

A generic function to construct the different variance components of an object. You may want to use this in conjunction with bootstrap.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
variance(.object, ...)

## S3 method for class 'fitrfh'
variance(.object, ...)

## S3 method for class 'fitrsfh'
variance(.object, ...)

## S3 method for class 'fitrtfh'
variance(.object, ...)

## S3 method for class 'fitrstfh'
variance(.object, ...)

## S3 method for class 'fitrfh'
weights(object, c = 1, ...)

Arguments

.object, object

an object

...

arguments passed to method

c

(numeric) scalar

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
data("grapes", package = "sae")
data("grapesprox", package = "sae")

fitRFH <- rfh(
  grapehect ~ area + workdays - 1,
  data = grapes,
  samplingVar = "var"
)

# The variance component of a mixed linear model:
matV <- variance(fitRFH)
# The full variance matrix:
matV$V()

# The sampling error component
matV$Ve()

# the random effects component
matV$Vu()

wahani/saeRobustTools documentation built on May 3, 2019, 8:09 p.m.