db.add.CL {RGeostats}R Documentation

Add some linear combinations of existing variables in a Db

Description

Add some linear combinations of existing variables in a Db

Usage

db.add.CL(db, Y.names, Z.names, mat.CL)

Arguments

db

The db-class which contains the initial set of variables Y_1,...,Y_p, and will contain the resulting variables Z_1,...,Z_n.

Y.names

A vector containing the names of the input variables

Z.names

A vector containing the names assigned to the resulting variables

mat.CL

Matrix giving the coefficients of the linear combinations going from the set of input variables Y_1,...,Y_p to the set of final variables Z_1,...,Z_n. It must have dimension (n,p).

Details

For a matrix A[n,p] and a set of p input variables Y_1,...,Y_p, it computes the values of the set of n output variables Z_1,...,Z_n deduced from the linear transform: Z = A x Y.

Value

The resulting db-class containing the newly added variables.


[Package RGeostats version 14.0.10 Index]