Stat 5810, Applied Spatial Statistics

Homework Assignment 3 (9/18/00)

25 Points - Due 9/25/00 in class


You may work in groups of 2 people on this assignment and turn in a joint solution.

You have to use S-Plus to answer all of the following questions. Your solutions should consist of the S-Plus commands you have typed, any S-Plus functions you have written, and the output (text and postscript graphics) produced in S-Plus. For example, let us assume we wrote a simple function called jstestfunction in a texteditor:
jstestfunction _ function ()
{
  "a simple function"
}
After copying this function into S-Plus, you should type the function name (without the ``()'') such that S-Plus displays the code of this function. Then you call the function by typing in the function name (this time with the ``()'') and S-Plus will produce the result.

Your output should contain all three parts, i.e., the code of the function, the function calls (if parameters are involved, call the function with at least three different combinations of parameters - to test a function, even more combinations of parameters may be required), and the results. Annotate the output to make things more readable. Here, the answer would be:
>                                ### here is the body of the function
> jstestfunction      
function()
{
        "a simple function"
}
>                                ### here the function is called without
                                 ### any parameter
> jstestfunction()
[1] "a simple function"          ### and this is the result
>