Learn R Programming

discFA (version 1.0.1)

dfnbt: Discrete factor analysis for the truncated negative binomial distribution (with right truncation at A)

Description

Discrete factor analysis for the truncated negative binomial distribution (with right truncation at A)

Usage

dfnbt(y, A)

Value

A list with entries

AIC

AIC value for the optimal model

indexmat

Factors and variables in each factor

estr0

Estimated value of r for the factor

estp0

Estimated value of p for the factor

estr

Estimated value of r for the observation

estp

Estimated value of r for the observation

Arguments

y

Data, an n by d numeric matrix

A

truncation point (Note that if the data is in Likert scale starting from 1, then you should subtract 1 from the data and then use the proposed negative binomial models.

Examples

Run this code
dfnbt(zinb100_Data[1:40,1:3], A = 6)

Run the code above in your browser using DataLab