Welcome to the world of R. As a newbie to R you would be well advised to look at some of the manuals for beginners which can be found under the R/Splus/Info for R users (Links, Manuals, Books etc).
1.Plotting two series. Use plot function for the first series and then points or lines to add the second series. To find out more about these functions and see examples just enter a ? in front of the function, e.g. ?plot ?points ?lines
2.To produce a series or results for Y you need to assign a series of values to Z instead of a single value. You can do this with functions like rnorm, runif, seq, c, or sample, depending on what values you want to assign to z and whether you already have values to randomly select from, e.g.
Z<-data.frame(Index1=rnorm(1000), Index2=rnorm(1000))
3. Have a look at ?shapiro.test
Hope this helps
Mike




Reply With Quote
