SSQ: A support function that calculates the sum of squares of a...

Description Usage Arguments Value Author(s) Examples

View source: R/SSQ.R View source: R/B1Nmean.R

Description

The sum of squares of the input vector is returned.

Usage

1
SSQ(x)

Arguments

x

a vector of numbers without missing values

Value

the sum of squares of x

Author(s)

Robert van Hulst

Examples

1
SSQ(x = rnorm(n=100))

Example output

Loading required package: rstan
Loading required package: StanHeaders
Loading required package: ggplot2
rstan (Version 2.21.2, GitRev: 2e1f913d3ca3)
For execution on a local, multicore CPU with excess RAM we recommend calling
options(mc.cores = parallel::detectCores()).
To avoid recompilation of unchanged Stan programs, we recommend calling
rstan_options(auto_write = TRUE)
Loading required package: rstanarm
Loading required package: Rcpp
This is rstanarm version 2.21.1
- See https://mc-stan.org/rstanarm/articles/priors for changes to default priors!
- Default priors may change, so it's safest to specify priors, even if equivalent to the defaults.
- For execution on a local, multicore CPU with excess RAM we recommend calling
  options(mc.cores = parallel::detectCores())

Attaching package: ‘rstanarm’

The following object is masked from ‘package:rstan’:

    loo

Loading required package: loo
This is loo version 2.3.1
- Online documentation and vignettes at mc-stan.org/loo
- As of v2.0.0 loo defaults to 1 core but we recommend using as many as possible. Use the 'cores' argument or set options(mc.cores = NUM_CORES) for an entire session. 

Attaching package: ‘loo’

The following object is masked from ‘package:rstan’:

    loo

Loading required package: lattice
Warning message:
In file(con, "r") : cannot open file '/proc/stat': Permission denied
[1] 74.93815

evidence documentation built on May 2, 2019, 2:14 p.m.