weight: Weight a qdap Object

View source: R/weight.R

weightR Documentation

Weight a qdap Object

Description

Weight a word_proximity object.

Usage

weight(x, type = "scale", ...)

Arguments

x

A qdap object with a weight method.

type

A weighting type of: c("scale_log", "scale", "rev_scale", "rev_scale_log", "log", "sqrt", "scale_sqrt", "rev_sqrt", "rev_scale_sqrt"). The weight type section name (i.e. A_B_C where A, B, and C are sections) determines what action will occur. log will use log, sqrt will use sqrt, scale will standardize the values. rev will multiply by -1 to give the inverse sign. This enables a comparison similar to correlations rather than distance.

...

ignored.

Value

Returns a weighted list of matrices.

Note

A constant of .000000000001 is added to each element when log is used to deal with the problem of log(0).


qdap documentation built on May 31, 2023, 5:20 p.m.