factanal: data.frame-first formula-second method for 'factanal'

Description Usage Arguments See Also Examples

Description

This function passes a data.frame, formula, and additional arguments to factanal.

Usage

1
2
3
4
factanal(data, formula = ~., ...)

## S3 method for class 'factanal'
predict(object, data, ...)

Arguments

data

Data frame (or object that can be coerced to one) containing the variables in the model

formula

A formula (or object that can be coerced to one) with no response variable (optional). If omitted, all variables in "data" will be included.

...

Additional arguments to pass to model function

object

Fitted model

See Also

factanal

Examples

1
2
3
4
factanal(mtcars, factors = 3)

fit <- factanal(mtcars, ~ hp*am*wt, factors = 3)
predict(fit, mtcars[1:5, ])

drsimonj/twidlr documentation built on May 15, 2019, 2:53 p.m.