discrimR(formula, data, weights, cluster, start, subset, na.action,
contrasts = NULL, hess = FALSE, ranef = FALSE, zi = FALSE,
method = c("duotrio", "probit", "threeAFC", "triangle",
"twoAFC"), ...)glm with a binomial family. The rhs
should be 1data.frame in which to look for variables.optim. control=list(trace=TRUE, REPORT=1) is
recommended, so the reduction in deviance and convergence can be
followed.optimtriangle, twoAFC,
threeAFC, duotrio,
discrimPwr, discrimSim,
discrimSS, samediff,
AnotA, findcrfreq <- c(10,8,10,9,8,9,9,1,10,10,8,2,6,7,6,7,6,4,5,5,3,3,9,9,5,5,8,8,9,9)
tmp <- data.frame(id = factor(1:30), n = rep(10, 30), freq = freq)
head(tmp)
str(tmp)
fm <- discrimR(cbind(freq, n - freq) ~ 1, tmp, cluster = id,
start = c(.5, .5), method = "twoAFC",
ranef = TRUE, zi = TRUE, hess = TRUE,
control=list(trace=TRUE, REPORT=1))
names(fm)
fm[1:4]Run the code above in your browser using DataLab