modelLT.gui()
Now you can enter the desired life expectancy target (e0). Press the Enter key to update the life table and the alpha value. Alternatively, you can update the alpha value directly. Again, press the Enter key to update the content of the window.
To export the life table into a csv file, press the Export button. To plot any of the life table columns as a function of age, select the column in the drop-list at the bottom of the window, choose if the y-axis should be on a log scale and press Plot. From here, you can save the plot in various formats.
For the GUI to run the user will first need to install GTK+.
GTK+ can be downloaded here http://www.gtk.org/download/index.php.
If the user does not first install GTK and invokes the GUI from the R
console, a dialogue box will appear to ask if you want to install GTK.
## Not run:
# modelLT.gui()## End(Not run)
Run the code above in your browser using DataLab