weight: Weight a qdap Object

Description Usage Arguments Value Note

View source: R/weight.R

Description

Weight a word_proximity object.

Usage

1
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).


trinker/qdap documentation built on Sept. 30, 2020, 6:28 p.m.