+ Reply to Thread
Results 1 to 2 of 2

Thread: Help! I am a newbie!

  1. #1
    Points: 2,581, Level: 30
    Level completed: 88%, Points required for next Level: 19

    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help! I am a newbie!



    Hi everyone,

    I am a total newbie to Splus and R. Any help would be welcomed!

    Three question:
    1. How do I draw log(1+x) and x on the same graph, so I can compare log(1+x) and x?

    2. If Y = Z[X with subscript 1] + (1-Z)[X with subscript 2], how can I simulate 1000 realizations of Y and draw a normal plot? (X with subscript 1 and X with subscript 2 are two bivariate normally distributed r.v.s)

    3. How do a test Y using a Shapiro-Wilk test?

    Thanks!

  2. #2
    TS Contributor
    Points: 5,565, Level: 48
    Level completed: 8%, Points required for next Level: 185

    Location
    St Albans, UK
    Posts
    257
    Thanks
    0
    Thanked 7 Times in 5 Posts

    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 to Thread

Similar Threads

  1. newbie requiring help please :)
    By gavinus in forum Statistics
    Replies: 0
    Last Post: 10-08-2009, 08:07 PM
  2. request for help for newbie
    By mr. ted in forum Statistics
    Replies: 3
    Last Post: 04-17-2008, 03:02 PM
  3. Newbie... I need help.
    By dreamer in forum Statistics
    Replies: 2
    Last Post: 02-17-2008, 04:46 AM
  4. Newbie with a question
    By TheQueenOfStyrene in forum Statistics
    Replies: 3
    Last Post: 10-12-2007, 08:10 PM
  5. Newbie help please
    By rede96 in forum Probability
    Replies: 0
    Last Post: 07-31-2007, 04:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats