rm(list = ls() # clear the memory
#
# This is a brief introduction to R
# Open R, and then work through these commands
#
#
#
'#' = comment
'<-' or '=' = affect; defines the left hand side to be the right hand side
'>' = prompt of R
# basic operations - en
# R example; acetylene data
# Data from Montgomery & Peck Example 8.1
# Response variabe (conv) is % conversion of n-heptane to
acetylene
# Explanatory variables temp (reactor temperature), mole (ratio
of H2 to n-heptane)
# Enter the data:
conv
=c(49,50.2
Simple Linear Regression : Mortality Data
The data, taken from certain regions of Great Britain, Norway, and Sweden
contains the mean annual temperature (in degrees F) and mortality index for
neoplasms of the female breast.
Mortality rate (M)
102.5
104.5
What is R?
Introduction to R
R is a language and environment for statistical computing and graphics. It is a GNU
project which is similar to the S language and environment which was developed at
Bell Laboratories (formerly AT&T, now Lucent Technologies) b