Introduction to the R language

1 / 12

# Introduction to the R language - PowerPoint PPT Presentation

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.

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

## PowerPoint Slideshow about 'Introduction to the R language' - oded

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

### 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

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)