Export rav
results
rav
resultsThe function exports to a text file the estimated parameters or the model residuals from a call to rav
.
rav2file(object, what = c("resid","param"), whichModel = NULL, file = file.choose(), sep = ",", dec = ".")
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:
"null"
: null model"ESM"
: equal scale values model"SAM"
: simple averaging model"EAM"
: equal-weights averaging model"DAM"
: differential-weight averaging model"IC"
: information criteriaAs 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.
rav
, rav.single
## 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)
Useful links