120 likes | 292 Views
Introduction to the R language. Mathew Plucinski University of Cambridge / UC Berkeley. What is it. A free version of S+ Statistical programming Used extensively in computational biology, to a lesser extent in applied statistics, financial mathematics Interpretive language. Outline.
E N D
Introduction to the R language Mathew Plucinski University of Cambridge / UC Berkeley
What is it • A free version of S+ • Statistical programming • Used extensively in computational biology, to a lesser extent in applied statistics, financial mathematics • Interpretive language
Outline • Introduction to R Console • Basic arithmetic, working with vectors, and simple statistics • A more serious example – Gillespie Algorithm
Stochastic, Discrete SIR model St,It,Rt
Stochastic, Discrete SIR model Infection St,It,Rt Recovery
Stochastic, Discrete SIR model Infection St,It,Rt Recovery
Stochastic, Discrete SIR model St-1,It+1,Rt Infection St,It,Rt
Stochastic, Discrete SIR model St-1,It+1,Rt Infection St,It,Rt Recovery
Stochastic, Discrete SIR model St-1,It+1,Rt Infection St,It,Rt Recovery St,It-1,Rt+1
Stochastic, Discrete SIR model St-1,It+1,Rt Rate: λStIt St,It,Rt Rate: µIt St,It-1,Rt+1
Stochastic, Discrete SIR model St-1,It+1,Rt p=λStIt/(λStIt+ µIt) St,It,Rt St,It-1,Rt+1 p= µIt/(λStIt+ µIt)