MAXIM-R is a collection of R programs intended to be used with the book Modeling, Analysis, Design and Control of Stochastic Systems by V G Kulkarni. The original collection is written in MATLAB, the translation is done by TJ Guo. This is a guide intended for STOR 445 students at UNC-CH on how to use MAXIM-R.
Download R and RStudio at the following links:
After installing the programs, open RStudio and type in the following commands in the console to download devtools, a required package for installing this package.
install.packages("devtools")
library("devtools")
After loading devtools, type in the following command in the console to download this package:
install_github("cothurn/MAXIM-R")
Now you are ready to use this package!
First, brush up on general R syntax: One of the many R tutortials out there
To use the functions in the package, just type in the console/R file the function you want to call, followed by the arguments of the function in parenthesis. Example:
> bincdf(10,0.5)
[1] 0.00097656250.01074218750.05468750000.17187500000.37695312500.62304687500.82812500000.9453125000
[9] 0.98925781250.99902343751.0000000000You can use variables as arguments of the function/store the result of a function call as a variable if the result is not a plot. To see a complete list of available functions, please check the following section. You can also type in a question mark followed by the name of the function in RStudio console for a more detailed documentation and examples of its usage:
?bincdf