11# # File Name: tam.latreg.R
2- # # File Version: 9.341
2+ # # File Version: 9.343
33
44# ##################################################################
55# latent regression
@@ -244,6 +244,8 @@ tam.latreg <- function( like, theta=NULL, Y=NULL, group=NULL,
244244 hwtE = hwt , hwt = hwt , ndim = ndim , theta = theta )
245245 person <- res $ person
246246 EAP.rel <- res $ EAP.rel
247+ M_post <- res $ M_post
248+ SD_post <- res $ SD_post
247249
248250 # cat("person parameters") ; a1 <- Sys.time(); print(a1-a0) ; a0 <- a1
249251 # ###########################################################
@@ -288,7 +290,7 @@ tam.latreg <- function( like, theta=NULL, Y=NULL, group=NULL,
288290 deviance.history <- deviance.history [ 1 : iter , ]
289291 res <- list ( " beta" = beta , " variance" = variance ,
290292 " person" = person , pid = pid , " EAP.rel" = EAP.rel ,
291- " post" = hwt , " theta" = theta ,
293+ " post" = hwt , M_post = M_post , SD_post = SD_post , " theta" = theta ,
292294 " Y" = Y , " group" = group ,
293295 " G" = if ( is.null(group )){1 } else { length(unique( group ) )},
294296 " groups" = if ( is.null(group )){1 } else { groups },
@@ -303,7 +305,7 @@ tam.latreg <- function( like, theta=NULL, Y=NULL, group=NULL,
303305 " nnodes" = nnodes , " deviance" = deviance ,
304306 " ic" = ic , thetasamp.density = thetasamp.density ,
305307 " deviance.history" = deviance.history ,
306- " control" = con1a , " iter" = iter ,
308+ " control" = con1a , " iter" = iter ,
307309 " YSD" = YSD , CALL = CALL , latreg_stand = latreg_stand )
308310 class(res ) <- " tam.latreg"
309311 return (res )
0 commit comments