# Initialize a bfa model

### Description

This function accepts a data matrix `D`

and specified options,
returning an S3 object of class bfa.

### Usage

1 2 3 |

### 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`

.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.