prr.test: Original Permutation of Regression Residuals (PRR) test

View source: R/prr.test.R

prr.testR Documentation

Original Permutation of Regression Residuals (PRR) test

Description

This is part of the implementation in the original glmperm package (GPL-3)

Usage

prr.test(
  formula,
  var,
  family = gaussian,
  data,
  nrep = 1000,
  seed = 12345,
  Silent = TRUE,
  weights,
  subset,
  na.action,
  start = NULL,
  etastart,
  mustart,
  offset,
  control = glm.control(...),
  model = TRUE,
  method = "glm.fit",
  x = FALSE,
  y = TRUE,
  contrasts = NULL,
  ...
)

Arguments

formula

Formula that specifies the model

var

variable in the formula to permute

family

the GLM family object

data

Data frame with the data

nrep

number of permutation repetitions

seed

random seed

Silent

inverse verbose T/F

weights

Weights to use for the observations

subset

Take a given subset of the observations

na.action

what to do with NA values

start

GLM initialization parameters

etastart

GLM initialization parameters

mustart

GLM initialization parameters

offset

offset to use for each observation

control

extra fit options for GLM

model

whether to return the model

method

function that fits the model

x

whether to return the model matrix

y

whether to return the response vector

contrasts

contrasts to use for the model matrix

Value

list of likelihood and permutation based p-values


majuvi/llperm documentation built on May 2, 2022, 5:20 p.m.