get_sum_of_squares_from_df: Get sum of uncentered squares

View source: R/basics.R

get_sum_of_squares_from_dfR Documentation

Get sum of uncentered squares

Description

Get sum of uncentered squares. This quantity is a sufficient statistic for, for example, multivariate Gaussian belief-updating under an Normal-Inverse-Wishart prior.

Usage

get_sum_of_squares_from_df(data, variables = NULL, center = T, verbose = F)

get_sum_of_uncentered_squares_from_df(data, variables = NULL, verbose = F)

get_sum_of_centered_squares_from_df(data, variables = NULL, verbose = F)

Arguments

data

A 'tibble', 'data.frame', or 'matrix'. If data is a 'tibble' or 'data.frame', the columns for specified variables are extracted and (together) converted into a matrix with as many colums as there are variables.

variables

Only required if data is not already a 'matrix'.

Value

A matrix.


hlplab/MVBeliefUpdatr documentation built on March 29, 2025, 10:42 p.m.