Learn R Programming

visualFields (version 0.6.2)

poplr_pstat: Permutation of Pointwise Linear Regression (PoPLR): calculation of the p-value

Description

For details see [1]

Usage

poplr_pstat( vf, porder, sltest = 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

sltest

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)

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, poplr_cstat, vflayout_poplr, vfplot_plr

Examples

Run this code
# NOT RUN {
  res <- poplr( vf91016right )
# }

Run the code above in your browser using DataLab