Nothing
## File Name: tam_linking_extract_parameters_trait_distribution.R
## File Version: 0.02
tam_linking_extract_parameters_trait_distribution <- function(tamobj)
{
class_tamobj <- class(tamobj)
G <- tamobj$G
group <- tamobj$group
M <- as.vector( unlist(tamobj$beta) )
variance <- tamobj$variance
if ( class_tamobj %in% c("tam.mml", "tam.mml.2pl", "tam.mml.mfr") ){
if (G > 1){
variance_group <- tam_aggregate( variance, group, mean=TRUE)
SD <- sqrt( variance_group[,2] )
} else {
SD <- sqrt(variance[1,1])
}
} else {
SD <- sqrt( as.vector( unlist( variance ) ) )
}
#--- output
res <- list( class_tamobj=class_tamobj, G=G, group=group, M=M, SD=SD)
return(res)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.