stnd.Ht: Standardize Temporal Covariates

stnd.HtR Documentation

Standardize Temporal Covariates

Description

Standardize temporal covariates with respect to both the spacial and time dimensions

Usage

stnd.Ht(Ht, n)

Arguments

Ht

Temporal covariates (of supporting sites). A \tau x p_t numeric matrix.

n

Number of sites. A positive scalar integer.

Value

A \tau x p_t numeric matrix.

See Also

stnd.Hs, stnd.Hst.ls.

Examples


##### Please see the examples in Hst.sumup


## The function is currently defined as
function (Ht, n) 
{
    h.mean <- apply(Ht, 2, mean)
    sHt <- t(t(Ht) - h.mean)
    sHt <- t(t(sHt)/apply(sHt, 2, function(x) {
        sqrt(sum(x^2))
    }))
    sHt <- sHt * sqrt(nrow(Ht)/n)
    return(sHt)
  }

widals documentation built on April 4, 2025, 4:45 a.m.