08.10.2015 Views

Package ‘MuMIn’

Package 'MuMIn'

Package 'MuMIn'

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

stdize 51<br />

stdize<br />

Standardize data<br />

Description<br />

Usage<br />

stdize standardizes variables by centring and scaling.<br />

stdizeFit modifies a model call or existing model to use standardized variables.<br />

## Default S3 method:<br />

stdize(x, center = TRUE, scale = TRUE, ...)<br />

## S3 method for class logical<br />

stdize(x, binary = c("center", "scale", "binary", "half", "omit"),<br />

center = TRUE, scale = FALSE, ...)<br />

## also for two-level factors<br />

## S3 method for class data.frame<br />

stdize(x, binary = c("center", "scale", "binary", "half", "omit"),<br />

center = TRUE, scale = TRUE, omit.cols = NULL, source = NULL,<br />

prefix = TRUE, append = FALSE, ...)<br />

## S3 method for class formula<br />

stdize(x, data = NULL, response = FALSE,<br />

binary = c("center", "scale", "binary", "half", "omit"),<br />

center = TRUE, scale = TRUE, omit.cols = NULL, prefix = TRUE,<br />

append = FALSE, ...)<br />

stdizeFit(object, data, which = c("formula", "subset", "offset", "weights"),<br />

evaluate = TRUE, quote = NA)<br />

Arguments<br />

x<br />

center, scale<br />

binary<br />

source<br />

a numeric or logical vector, factor, numeric matrix, data.frame or a formula.<br />

either a logical value, or a logical or numeric vector of length equal to the number<br />

of columns of x (see ‘Details’). scale can be also a function to use for<br />

scaling.<br />

specifies how binary variables (logical or two-level factors) are scaled. Default<br />

is to "center" by subtracting the mean assuming levels are equal to 0 and 1;<br />

use "scale" to both centre and scale by SD, "binary" to centre to 0 / 1, "half"<br />

to centre to -0.5 / 0.5, and "omit" to leave binary variables unmodified. This<br />

argument has precedence over center and scale, unless it is set to NA (in which<br />

case binary variables are treated like numeric variables).<br />

a reference data.frame, being a result of previous stdize, from which scale<br />

and center values are taken. Column names are matched. This can be used for<br />

scaling new data using statistics of another data.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!