access_dims: Generic method for accessing model fit dimensions

Description Usage Arguments Details Value Examples

Description

Generic method for accessing model fit dimensions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ncategories(m)

nsamples(m)

ncovariates(m)

niter(m)

## S3 method for class 'pibblefit'
ncategories(m)

## S3 method for class 'pibblefit'
nsamples(m)

## S3 method for class 'pibblefit'
ncovariates(m)

## S3 method for class 'pibblefit'
niter(m)

## S3 method for class 'orthusfit'
ncategories(m)

## S3 method for class 'orthusfit'
nsamples(m)

## S3 method for class 'orthusfit'
ncovariates(m)

## S3 method for class 'orthusfit'
niter(m)

Arguments

m

An object of class pibblefit

Details

An alternative approach to accessing these dimensions is to access them directly from the pibblefit object using list indexing. * ncategories is equivalent to m$D * nsamples is equivalent to m$N * ncovariates is equivalent to m$Q

Value

integer

Examples

1
2
3
4
5
6
7
## Not run: 
m <- pibble(Y, X)
ncategories(m)
nsamples(m)
ncovariates(m)

## End(Not run)

jsilve24/mongrel documentation built on Jan. 27, 2022, 9:54 p.m.