poplr_pstat: Permutation of Pointwise Linear Regression (PoPLR):...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/poplr_pstat.R

Description

For details see [1]

Usage

1
poplr_pstat( vf, porder, type = "slr", sl_test = NULL )

Arguments

vf

visual-field data. It can be td or pd as well

porder

order of permunations of visual-fields sensitivities. Each row contains a permutation of tests from vf

type

Type of regression statistic: slr for simple linear regression and rank for Spearman correlation coefficient. Default is slr

sl_test

values for the 1-tailed hypothesis test for each location. The reference values are not restricted, but they should be either zero (was there any progression?) or negative (was the progression greater than test value?). Default is NULL

Value

the function retunts two different structures depending on whehter the analysis is linear regression (type = "slr" or Spearman rank correlation type = "rank"). For slr analysis, the sturcture consists of four matrices with data: pval (p-value at each permutation and location of the significance of the 1-tailed hypothesis test specified by sl_test for each location), se (standard error), sl (slope), and int (intercept). For rank analysis, the sturcture consists of two matrices: pval (p-value at each permutation and location of the significance of the 1-tailed hypothesis test specified by sl_test for each location) and rho (the Spearman rank correlation)

Author(s)

Ivan Marin-Franch

References

[1] N. O'Leary, B. C. Chauhan, and P. H. Artes. Visual field progression in glaucoma: estimating the overall significance of deterioration with permutation analyses of pointwise linear regression (PoPLR). Investigative Ophthalmology and Visual Science, 53, 2012

See Also

poplr, hist_poplr, poplr_cstat, vflayout_poplr, vfplot_poplr

Examples

1
res <- poplr( vf91016right )

Example output

Loading required package: gridBase
Loading required package: grid
Loading required package: flip
Loading required package: e1071
Loading required package: someMTP
Loading required package: cherry
Loading required package: bitops
Loading required package: lpSolve
Loading required package: Matrix
Loading required package: slam

Attaching package: 'flip'

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

    p.value

Loading required package: matrixStats
Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package: 'ggplot2'

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

    alpha


Attaching package: 'Hmisc'

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

    impute

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

    format.pval, round.POSIXt, trunc.POSIXt, units

visualFields documentation built on May 29, 2017, 9:31 a.m.