<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Bom dia,<br>
<br>
Estava rodando o código R presente no paper: <a
href="http://www.jstatsoft.org/v20/i02/paper">http://www.jstatsoft.org/v20/i02/paper</a><br>
<br>
<tt>require(lme4)<br>
data("lq2002", package = "multilevel")<br>
wrk <- lq2002<br>
for (i in 3:16) wrk[[i]] <- ordered(wrk[[i]])<br>
for (i in 17:21) wrk[[i]] <- ordered(5 - wrk[[i]])<br>
lql <- reshape(wrk, varying = list(names(lq2002)[3:21]),<br>
v.names = "fivelev", idvar = "subj", timevar =
"item",<br>
drop = names(lq2002)[c(2, 22:27)], direction =
"long")<br>
lql$itype <- with(lql, factor(ifelse(item < 12,
"Leadership",<br>
ifelse(item < 15,<br>
"Task Sig.",
"Hostility"))))<br>
for (i in c(1, 2, 4, 5)) lql[[i]] <- factor(lql[[i]])<br>
lql$dichot <- factor(ifelse(lql$fivelev < 4, 0, 1))<br>
<br>
str(lql)<br>
summary(lql)<br>
<br>
(fm1 <- lmer(dichot ~ 0 + itype + (1 | subj) + (1 | COMPID) +<br>
(1 | item), lql, binomial))<br>
rr <- ranef(fm1, postVar = TRUE)<br>
str(rr)<br>
<br>
qq <- qqmath(rr)<br>
print(qq$subj)<br>
</tt><br>
O executei no terminal e rodou perfeitamente (R 2.14 dev compilado
dos fontes - linux ubuntu)<br>
<br>
Quando fui executar no RStudio (Mesmo computador, mesmo usuário),
encontro a seguinte mens de erro:<br>
<br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: Arial; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: auto; text-indent:
0px; text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
font-size: medium; "><span class="Apple-style-span"
style="font-family: 'DejaVu Sans Mono'; font-size: 13px;
line-height: 17px; text-align: -webkit-left; white-space:
pre-wrap; ">
<pre tabindex="0" class="GD40030CLR" style="font-family: 'DejaVu Sans Mono'; font-size: 10pt !important; outline-style: none; outline-width: initial; outline-color: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; white-space: pre-wrap !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1.3; "><span class="GD40030COR ace_keyword" style="white-space: pre; color: rgb(127, 0, 85); ">> </span><span class="GD40030CCR ace_keyword" style="color: rgb(127, 0, 85); ">print(qq$subj)
</span><span class="GD40030CGR">Error in x$xscale.components(x$x.limits, at = x$x.scales$at, used.at = x$x.used.at, :
could not find function "calculateAxisComponents"</span></pre>
</span></span><br>
Isso é normal ou loucura do RStudio?<br>
<br>
O resultado esperado do comando é o gráfico na pág 12 do Paper (o da
esquerda). Isso eu consegui no R (terminal)<br>
<pre class="moz-signature" cols="72">--
[]s
Leonard de Assis
assis <dot> leonard <at> gmail <dot> com
</pre>
</body>
</html>