Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

write

Writing glmulti objects


Description

The S4 method provided for glmulti objects writes a glmulti object as a data.frame, or alternatively as a raw R object.

Usage

write(x, file = "data", ncolumns = if (is.character(x)) 1 else 5,
		append = FALSE, sep = " ")

Arguments

x

An object of class glmulti

file

The name of the file to write into. If missing, the name is taken to be the name of the glmulti object.* If "\object" is at the end of the filename, then the object is written as a raw R object using saveRDS.

ncolumns

Not used with glmulti objects

append

Whether to append the output to the file, if existing.

sep

The character to be used to separate columns.

Details

When using "\object", the file written can be read directly from R using readRDS, or with consensus.

Value

A data.frame. Rows correspond to all models, sorted from best to worse.. The first columns indicate whether the different terms are found in the formula of each model (0/1). The next columns contain model complexity (K), model IC, and model formula (as a character string).

Author(s)

Vincent Calcagno, McGill University

See Also


glmulti

Model Selection and Multimodel Inference Made Easy

v1.0.8
GPL (>= 2)
Authors
Vincent Calcagno [aut, cre]
Initial release
2020-05-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.