connectedSets: Connected sets in a matrix

View source: R/connectedSets.R

connectedSetsR Documentation

Connected sets in a matrix

Description

Finds connected data sets, i.e. connected rows and columns of a numeric matrix M.

Usage

connectedSets(M)

Arguments

M

Numeric matrix with missing values assumed to be NA or 0.

Details

In a two-way classification of linear models sometimes independent sets of normal equations are obtained due to missing data in the experiments design, i.e. the complete design matrix is not of full rank and thus no solution can be found. However, solutions of the independent sets of normal equations can still exist. This phenomenon is called 'connectedness' of the data. Especially in phenological analysis experimental designs are almost always unbalanced because of missing data. Thus, when combined time series are to be estimated, it is worth checking for and finding connected data sets for which combined time series can then be estimated. Example (also see example data(Simple) and example in 'maxConnectedSet'): In the following matrix dots represent missing values, X represent observations and the lines join the connected sets:

: X\_\_\_X . .
: |
: X\_\_\_X . .
:
: . . X\_\_\_X

Thus, in this matrix observations in rows 1 and 2 or colums 1 and 2 form one connected set. Likewise row 3 (or columns 3 and 4) form also one connected set.

Value

rowclasses

Vector of set numbers of rows of M (>=1). A value of -1 indicates a row with missing data.

colclasses

Vector of set numbers of columns of M(>=1). A value of -1 indicates a column with missing data.

Author(s)

Joerg Schaber

References

Searle (1997) 'Linear Models'. Wiley. page 318.

See Also

maxConnectedSet getConnectedSets

Examples

	data(Simple)
	connectedSets(Simple)

pheno documentation built on May 13, 2022, 1:05 a.m.

Related to connectedSets in pheno...