Learn R Programming

rAverage (version 0.4-10)

rav2file: 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, 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. "
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

Run this code
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=",")

Run the code above in your browser using DataLab