"accuracy" function. For spherical equivalent and astigmatism

The most important outcome of refractive surgery is the refraction, therefore with the Accuracy plot you can create a scattergram of the attempted refractive change vs. the achieved refractive change for each eye if you are analyzing the Spherical Equivalent (Figure C from the nine standard graphs) or The Target Induced Astigmatism versus the Surgically Induced Astigmatism if you are analyzing astigmatism data (Figure G from the nine standard graphs). 

This function calculates the standardized Graphs C and G detailed in the Journal of Refractive Surgery(1) from a two column matrix. Columns should contain:

  • For spherical equivalent analysis. Attempted in the first column and Achieved in the second.
  • For astigmatism analysis. Target in the first column and Induced in the second.

Example:

  • accuracy(SEQ,3,-11,0,'en',0) For spherical equivalent.
  • accuracy(AST,3,0,5.5,'en',1) For astigmatism.

Below you have the help of the function. For more information about "refractiveAnalysis" Toolbox please Contact the author.

%   Computes the Accuracy of Achieved versus Target refraction. Either for
%   spherical equivalent or Astigmatism (Target versus Induced).
%
%   DESCRIPTION
%
%   Computes the Figure C or G from the standard of the JRS (1)
%
%   PARAMETERS
%   
%   A           Two columns matrix
%               In Spherical Equivalent [Attempted, Achieved] 
%               In Cylinder [Target, Induced] in positive notation
%      
%   month       Number of months after surgery
%      
%   language    Language for the labels 'es' for Spanish or 'en' for English
%
%   type        0 - for spherical equivalent and 1 - for astigmatism  
%
%   EXAMPLE
%
%   accuracy(SEQ,3,-11,0,'en',0)
%   accuracy(AST,3,0,5.5,'en',1)
%
%   VERSION
%   
%   1.0.0
%
%   demo data "accuracy.mat"
%
%   1.- Reinstein DZ, Archer TJ, Randleman JB. JRS Standard for Reporting Astigmatism Outcomes of Refractive Surgery. J Refract Surg. 2014; 30: 654–9.