Type the name of the data file into R which will result in a data dump.Senic<-read.table(“senic.dat”, header = T) Use the read.table command to load this data into R and change the name of the data file into something more reasonable to use: Load the first data set – it is called “senic.dat”.To change the working directory, use the drop-down menu under File and search for the location of the R folder you wish to use. Use getwd() to determine which directory R is currently using. All data files for your labs are located in the Shared Directory in the AP Statistics folder.Source: Applied Linear Statistical Models, 3rd ed, Neter, J., Wasserman, W., Kutner, M. Beds = average number of beds in hospital during study period.X.Ray = the ratio of number of x-rays performed to number of patients without signs or symptoms of pneumonia, times 100.Culture= the ratio of number of cultures performed to number of patients without signs or symptoms of hospital-acquired infection, times 100.Age = average age of patients (in years).Risk = average estimated probability of acquiring infection while in hospital (in percent) (this is generally the y value).
0 Comments
Leave a Reply. |