grasp.in {grasper}R Documentation

Initialize GRASP-R variables

Description

Initializes the main objects that are used throughout the GRASP-R session

Usage

grasp.in(Ymat, Xmat, Xpred)

Arguments

Ymat name of the data frame of variables of interest.
Xmat name of the data frame of environmental drivers.
Xpred name of the data frame of new environmental drivers to predict from

Details

Grasp.in does several steps. It loads the required libraries (mgcv, modreg and MASS) and copies Ymat to YYY, Xmat to XXX and Xpred to XXXpred. Then it creates a first model using random variables (note that it overwrites all previous models). It also creates the weights (WEIGHTS data frame). After initialisation, you can change the weights by editing the WEIGHTS variable. It also intialises a few other objects usefull to GRASP-R. If you are not aiming at making predictions and therefore not using XXXpred, simply use grasp.in(Ymat, Xmat, Xmat). The File / Import... menu from grasp.GUI automates importation of ascii files and automatically launches grasp.in after importation. If you want to import files using the R prompt, look at the following functions : load, read.table and scan. You can save R objects back to the disk using the command save

Author(s)

Fabien Fivaz fabien.fivaz@bluewin.ch. Ported to R from GRASP http://www.cscf.ch/grasp/ for S-Plus written by A. Lehmann, J.R. Leathwich and J. McC Overton. Look at http://www.cscf.ch/grasp for details and update.

See Also

grasp.GUI


[Package grasper version 0.4-3 Index]