bfa_model: Initialize a bfa model

Description Usage Arguments Value

View source: R/class.R

Description

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

Usage

1
2
3
  bfa_model(x, data = NULL, num.factor = 1, restrict = NA,
  normal.dist = NA, center.data = TRUE, scale.data = FALSE,
  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

scale.data

Scale each margin to unit mean/variance

init

Initialize the factor loadings

...

ignored

Value

An S3 object of class bfa.


bfa documentation built on May 2, 2019, 4:55 p.m.