rav2file {rAverage}R Documentation

Export rav results

Description

The function exports to a text file the estimated parameters or the model residuals from a call to rav.

Usage

rav2file(object, what = c("resid","param"), whichModel = NULL,
         file = file.choose(), sep = ",", dec = ".")

Arguments

object

An object analyzed by the function rav.

what

Character string indicating which output should be stored in the file, if raw residuals (what = "resid") or parameters (what = "param").

whichModel

Argument that specifies from which model values must be extracted. Options are:

  1. "null": null model

  2. "ESM": equal scale values model

  3. "SAM": simple averaging model

  4. "EAM": equal-weights averaging model

  5. "DAM": differential-weight averaging model

  6. "IC": information criteria

As default setting, the values of the (first) best model are extracted.

file

A character string naming the file to write. As default, the function opens a mask to choose or build a file interactively.

sep

Field separator string. Values within each row will be separated by this string.

dec

String argument used to specify the decimal separator.

See Also

rav, rav.single

Examples

## Not run: 
data(pasta)
model <- rav.single(pasta,lev=c(3,3))
rav2file(model, what="resid", file="PastaResid-1.csv")
rav2file(model, what="resid", file="PastaResid-2.csv", sep=";", dec=",")

## End(Not run)

[Package rAverage version 0.5-8 Index]