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

View source: R/ageLinearModel.R

calculates the linear model to account for mean age effect on visual sensitivity at each location from a sample of controls subjects

1 | ```
ageLinearModel( vf, smooth = TRUE, smoothFunction = quad2Dfit )
``` |

`vf` |
a |

`smooth` |
whether to use a function to smooth the results or not. Default is |

`smoothFunction` |
If |

The function obtains for each location a regression line of sensitivity threshold on age. The `vf`

object may contain data for many visits of many subjects. The number of visits per subject can be variable and hence, to account for that, weighted least-squares linear regression is performed in which the weights for is the inverse of the number of visits for the subject. By default, the slopes and intercepts are "smoothed" by fitting a 2-dimensional quadratic fit, as in [1]. Other `smoothFunctions`

can be defined instead using other type of parametric or non-parametric fits. The 2-dimensional quadratic fit has been found to be innapropriate for the stimulus used in frequency-doubling perimetry (FDP) [2].

All the data passed to the function must belong to the same perimeter `tperimetry`

, the same pattern of locations `talgorithm`

, and the same presentation algorithm `tpattern`

.

returns a table with intercepts and slopes modelling age-related mean sensitivity change.

Ivan Marin-Franch

[1] A. Heijl, G. Lindgren, and J. Olsson. *A package for the statistical analysis of visual fields*. Documenta Ophthalmologica Proceedings Series, 49, 1987

[2] A. J. Anderson, C. A. Johnson, M. Fingeret, J. L. Keltner, P. G. D. Spry, M. Wall, and J. S. Werner. *Characteristics of the normative database for the humphrey matrix perimeter*. Investigative Ophthalmology and Visual Science, 46, 2005

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.