Learn R Programming

basicspace (version 0.24)

fit: Extraction function for fit of scaling model

Description

fit is a convenience function to extract the model fit statistics from an aldmck, blackbox, or blackbt object.

Usage

fit(object)

Arguments

object

an aldmck, blackbox, or blackbt output object.

Value

The model fit statistics of the estimated output, which can also be recovered as object$fits (for blackbox or blackbt objects) or object$AMfit (for aldmck objects). Please refer to the documentation of aldmck, blackbox, or blackbox_transpose for specifics.

See Also

'aldmck', 'blackbox', 'blackbox_transpose'.

Examples

Run this code
# NOT RUN {
data(Issues1980)
Issues1980[Issues1980[,"abortion1"]==7,"abortion1"] <- 8	#missing recode
Issues1980[Issues1980[,"abortion2"]==7,"abortion2"] <- 8	#missing recode

### This command conducts estimates, which we instead load using data()
# Issues1980_bb <- blackbox(Issues1980,missing=c(0,8,9),verbose=FALSE,dims=3,minscale=8)
data(Issues1980_bb)



fit(Issues1980_bb)

# }

Run the code above in your browser using DataLab