<html><head></head><body><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"></div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">
</div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false">Prezado Walmes, muito obrigado.</div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false"><br></div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false"><br></div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false">Pelo que entendi não é possível <span><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">"sigma^2_b"</span></span> e <span><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">"sigma^2_e"</span></span> utilizando a função gls().</div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><br></div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false"><span><span style="text-align: left; color: rgb(29, 34, 40); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);">A função VarCorr(modelo2) fornece <span><span style="text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; orphans: 2;"><span style="background-color: rgb(255, 255, 255); color: rgb(29, 34, 40); display: inline; float: none; font-family: monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">"sigma^2_b"</span></span><span style="text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; background-color: rgb(255, 255, 255);"> e </span><span style="text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; orphans: 2;"><span style="background-color: rgb(255, 255, 255); color: rgb(29, 34, 40); display: inline; float: none; font-family: monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">"sigma^2_e"</span></span></span>, correto?</span></span></div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false"><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><br></div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false"> Variance StdDev <br>(Intercept) 667641.149 817.09311<br>Residual 6041.696 77.72834</div><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false"><br></div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false">Tenho uma dúvida: a variância do intercepto é <span><span style="text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; orphans: 2;"><span style="background-color: rgb(255, 255, 255); color: rgb(29, 34, 40); display: inline; float: none; font-family: monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">"sigma^2_b"</span></span></span>?</div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false"><br></div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false"><br></div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false">Muito obrigado. Sua contribuição está sendo muito válida no meu trabalho.</div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false">Luiz</div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" dir="ltr" data-setdir="false"><br></div><div class="ydp1af10255yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">
</div><div class="yahoo_quoted" id="yahoo_quoted_5034349866">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Wednesday, November 27, 2019, 07:13:37 PM GMT-2, Walmes Zeviani <walmeszeviani@gmail.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv2447495546"><div><div dir="ltr"><div class="yiv2447495546gmail_default" style="font-family:trebuchet ms, sans-serif;">Luiz,</div><div class="yiv2447495546gmail_default" style="font-family:trebuchet ms, sans-serif;"><br clear="none"></div><div class="yiv2447495546gmail_default" style="font-family:trebuchet ms, sans-serif;">Você terá que mudar a função que está usando.</div><div class="yiv2447495546gmail_default" style="font-family:trebuchet ms, sans-serif;"><br clear="none"></div><div class="yiv2447495546gmail_default"><span style="font-family:monospace;">library(nlme)<br clear="none"><br clear="none">table(x)<br clear="none"><br clear="none">lattice::xyplot(y ~ x)<br clear="none"><br clear="none">modelo0 <- aov(y ~ x)<br clear="none">a <- anova(modelo0)<br clear="none">a<br clear="none"><br clear="none"># Componentes de variância pelo método ANOVA.<br clear="none">c("sigma^2_b" = (a["x", "Mean Sq"] - a["Residuals", "Mean Sq"])/6,<br clear="none"> "sigma^2_e" = a["Residuals", "Mean Sq"])<br clear="none"><br clear="none">modelo1 <- lme(y ~ 1,<br clear="none"> random = ~1 | x,<br clear="none"> method = "REML")<br clear="none">modelo1<br clear="none"><br clear="none"># Componentes de variância pelo método REML.<br clear="none">VarCorr(modelo1)<br clear="none"><br clear="none">modelo2 <- lme(y ~ 1,<br clear="none"> random = ~1 | x,<div class="yiv2447495546yqt0209174036" id="yiv2447495546yqtfd11554"><br clear="none"> weights = varExp(),<br clear="none"> method = "ML")</div><br clear="none">modelo2<br clear="none"><br clear="none"># Componentes de variância pelo método REML.<br clear="none"># ATTENTION: não são imediatamente comparáveis com os anteriores.<br clear="none">VarCorr(modelo2)<br clear="none"></span></div><div class="yiv2447495546gmail_default" style="font-family:trebuchet ms, sans-serif;"><br clear="none"></div><div class="yiv2447495546gmail_default" style="font-family:trebuchet ms, sans-serif;">À disposição.</div><div class="yiv2447495546gmail_default" style="font-family:trebuchet ms, sans-serif;">Walmes.<div class="yiv2447495546yqt0209174036" id="yiv2447495546yqtfd29270"><br clear="none"></div></div></div></div></div></div>
</div>
</div></body></html>