GET_weights: Compute weights

Description Usage Arguments Details

View source: R/fdaAuxFunctions.R

Description

Compute the weights of each observation for parameter estimation.

Usage

1
GET_weights(weighted, weights = NULL, yy, id, uniq)

Arguments

weighted

Whether to use observation weights (TRUE) or not (FALSE). If weighted=FALSE, uniform weights are used.

weights

Externally provided weights.

yy

Response vector.

id

Randomisation IDs.

uniq

Unique levels in the response vector.

Details

Compute weights invesely proportional to the number of observations in each level of the response variable, if a vector of weights is not provided. It applies to both Regression and Classification tasks.


pmesperanca/mlevcm documentation built on March 17, 2021, 10:03 p.m.