deviance: Calculates the deviances

Description Usage Arguments Examples

View source: R/deviance.R

Description

deviance calculates the deviances.

Usage

1

Arguments

qp

output from quickpsy

Examples

1
2
3
4
library(MPDiR) # contains the Vernier data
fit <- quickpsy(Vernier, Phaseshift, NumUpward, N,
                grouping = .(Direction, WaveForm, TempFreq), B = 20)
deviance(fit)

Example output

Loading required package: DEoptim
Loading required package: parallel

DEoptim package
Differential Evolution algorithm in R
Authors: D. Ardia, K. Mullen, B. Peterson and J. Ulrich

Loading required package: dplyr

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Loading required package: ggplot2

Attaching package: 'quickpsy'

The following object is masked from 'package:stats':

    deviance

# A tibble: 8 x 4
# Groups:   Direction, WaveForm, TempFreq [8]
  Direction WaveForm TempFreq   deviance
  <fct>     <fct>    <fct>         <dbl>
1 Downward  Sine     2        1.85      
2 Downward  Sine     8        1.54      
3 Downward  Square   2        0.00000197
4 Downward  Square   8        0.831     
5 Upward    Sine     2        1.31      
6 Upward    Sine     8        4.19      
7 Upward    Square   2        0.0000322 
8 Upward    Square   8        1.57      

quickpsy documentation built on Oct. 2, 2019, 5:03 p.m.

Related to deviance in quickpsy...