fit: Extraction function for fit of scaling model

Description Usage Arguments Value Author(s) See Also Examples

View source: R/basicspace.R

Description

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

Usage

1
  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.

Author(s)

Keith Poole ktpoole@uga.edu

Howard Rosenthal hr31@nyu.edu

Jeffrey Lewis jblewis@ucla.edu

James Lo lojames@usc.edu

Royce Carroll rcarroll@rice.edu

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

basicspace documentation built on Jan. 11, 2020, 9:32 a.m.