Designmatrix for log linear CFA models

Calculates the degrees of freedom based on an designmatrix for a (log liniear) CFA model. #' @details No details

1 | ```
df_des_cfa(des)
``` |

`des` |
a designmatrix (object of class "matrix") as returned by function |

An object of class "integer" giving the degrees of freedom for the designmatrix defined in argument `des`

.

No references in the moment

1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ```
#######################################
# degrees of freedom for designmatrix with three main effects.
# three variables with two categories each.
df_des_cfa(design_cfg_cfa(kat=c(2,2,2)))
# two variables with two categories each and one variable
# with 7 categories (Lienert LSD example).
df_des_cfa(design_cfg_cfa(kat=c(2,2,7)))
###########
# degrees of freedom for designmatrix with three main effects
# and three 'two by two'interactions.
# and tripple interaction --> saturated model --> df=0
# three variables with two categories each.
df_des_cfa(design_cfg_cfa(kat=c(2,2,2),form="~ V1 + V2 + V3 + V1:V2 + V1:V3 + V2:V3 + V1:V2:V3"))
#######################################
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.