bfa_model: Initialize a bfa model

Description Usage Arguments Value

Description

This function accepts a data matrix D and specified options, returning an S3 object of class bfa.

Usage

1
2
3
bfa_model(x, data = NULL, num.factor = 1, restrict = NA,
  normal.dist = NA, center.data = NULL, scale.data = NULL, init = TRUE,
  ...)

Arguments

x

A formula or matrix

data

The data if x is a formula

num.factor

number of factors

restrict

A matrix or list giving restrictions on factor loadings. A matrix should be the same size as the loadings matrix. Acceptable values are 0 (identically 0), 1 (unrestricted), or 2 (strictly positive). List elements should be character vectors of the form c('variable',1, '>0') where 'variable' is the manifest variable, 1 is the factor, and '>0' is the restriction. Acceptable restrictions are '>0' or '0'.

normal.dist

A character vector specifying which variables should be treated as observed Gaussian

center.data

Center each margin (deprecated, ignored!)

scale.data

Scale each margin to unit mean/variance (deprecated, ignored!)

init

Initialize the factor loadings

...

ignored

Value

An S3 object of class bfa.


bfa documentation built on May 1, 2019, 10:19 p.m.