<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Prezado Edson,<br></div>
<div> </div>
<div>Você pediu instruções sobre como realizar um procedimento à primeira vista trivial, sem apontar onde especificamente está com dificuldade. Acredito ser mais produtivo para você ler o manual <i>An Introduction to R</i>, principalmente até o capítulo sobre vetores (inclusive), e daí em diante solicitar auxílio na lista quanto tiver dificuldades mais específicas.<br></div>
<div> </div>
<div>Atenciosamente,<br></div>
<div> </div>
<div id="sig4487139"><div class="signature" id="signature"><a href="http://lattes.cnpq.br/9234772336296638" title="Currículo Lattes">Leonardo Ferreira Fontenelle</a><br></div>
</div>
<div> </div>
<div> </div>
<div>Em Ter 4 ago. 2015, às 11:43, Edson Lira escreveu:<br></div>
<blockquote type="cite"><div style="color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-family:times new roman,new york,times,serif;font-size:16px;"><div dir="ltr"><span>Estou tentando analisar um banco que mede qualidade de vida. Abaixo um script usado no SPSS (http://www.ufrgs.br/psiquiatria/psiq/whoqol86.html)</span><br></div>
<div dir="ltr"><span><a href="http://www.ufrgs.br/psiquiatria/psiq/whoqol86.html">Instrumentos de Avaliação de Qualidade de vida - OMS - versão em português</a></span><br></div>
<div style="width:450px;font-family:"Georgia","Times","Times New Roman","serif";margin-top:5px;margin-bottom:5px;background-color:rgb(255, 255, 255);"><table style="width:450px;height:170px;position:relative;display:block;" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="height:1px;background-color:rgb(229, 229, 229);font-size:1px;border-collapse:collapse;" colspan="8"><div style="height:1px;background-color:rgb(229, 229, 229);font-size:1px;line-height:0px;"> </div>
</td></tr><tr><td style="width:1px;background-color:rgb(229, 229, 229);font-size:1pt;border-collapse:collapse;" rowspan="5"><div style="width:1px;background-color:rgb(229, 229, 229);font-size:1pt;"> </div>
</td><td style="vertical-align:middle;width:168px;height:168px;background-color:rgb(0, 0, 0);border-collapse:collapse;" rowspan="5"><div style="width:168px;" align="center"><a style="text-decoration-color:-moz-use-text-color !important;text-decoration-line:none !important;text-decoration-style:solid !important;color:rgb(0, 0, 0) !important;" href="http://www.ufrgs.br/psiquiatria/psiq/whoqol86.html"><img style="display:block;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;margin-left-ltr-source:physical;margin-left-rtl-source:physical;margin-right-ltr-source:physical;margin-right-rtl-source:physical;" src="https://www.fastmailusercontent.com/proxy/c17befdb7094f01cb872438b52c1117737ab139a2a5a12594e231e9eca405bff/86474707a3f2f2777777e25766277637e22627f20737961757961647279616f207379617f2f6d637e2769666/oms.gif" alt="image" height="154" width="168"></a><br></div>
</td><td style="width:1px;background-color:rgb(229, 229, 229);font-size:0pt;border-collapse:collapse;" rowspan="5"><div style="width:1px;background-color:rgb(229, 229, 229);font-size:1pt;"> </div>
</td><td style="width:14px;background-color:rgb(255, 255, 255);font-size:0pt;border-collapse:collapse;" rowspan="5"><div style="width:14px;background-color:rgb(255, 255, 255);font-size:14pt;"> </div>
</td><td style="height:6px;background-color:rgb(255, 255, 255);font-size:0pt;border-collapse:collapse;" colspan="2"><div style="height:6px;background-color:rgb(255, 255, 255);font-size:6pt;"> </div>
</td><td style="width:20px;background-color:rgb(255, 255, 255);font-size:0pt;border-collapse:collapse;" rowspan="5"><div style="width:20px;background-color:rgb(255, 255, 255);font-size:20pt;"> </div>
</td><td style="width:1px;background-color:rgb(229, 229, 229);font-size:1pt;border-collapse:collapse;" rowspan="5" width="1"><div style="width:1px;background-color:rgb(229, 229, 229);font-size:1pt;"> </div>
</td></tr><tr><td style="width:100%;vertical-align:middle;font-family:"Georgia","Times","Times New Roman","serif";" colspan="2"><div style="line-height:16.5px;background-color:rgb(255, 255, 255);height:135px;width:245px;"><div style="word-wrap:break-word;word-break:break-all;"><div><span></span><span></span><a style="text-decoration-color:-moz-use-text-color !important;text-decoration-line:none !important;text-decoration-style:solid !important;color:rgb(0, 0, 0) !important;line-height:100%;font-size:18px;display:block;" href="http://www.ufrgs.br/psiquiatria/psiq/whoqol86.html"><span style="color:rgb(0, 0, 0)" class="colour"><span style="font-size:18px" class="size">Instrumentos de Avaliação de Qualidade de vida - OMS - v...</span></span></a><br></div>
<div style="font-size:13px;line-height:20px;color:rgb(153, 153, 153);max-height:81px;font-family:"Georgia","Times","Times New Roman","serif";overflow-x:hidden;overflow-y:hidden;">Versão em português dos Instrumentos de Avaliação de Qualidade de Vida - WHOQOL-100 e WHOQOL-bref - da Organização Mundial de Saúde. Projeto de...<br></div>
</div>
</div>
</td></tr><tr><td style="height:4px;background-color:rgb(255, 255, 255);font-size:0pt;border-collapse:collapse;" colspan="2"><div style="height:4px;background-color:rgb(255, 255, 255);font-size:4pt;"> </div>
</td></tr><tr><td style="vertical-align:middle;font-family:"Arial","Helvetica Neue","Helvetica","sans-serif";"><div style="font-size:0pt;"><a style="color:black;text-decoration-color:-moz-use-text-color !important;text-decoration-line:none !important;text-decoration-style:solid !important;" href="http://www.ufrgs.br/psiquiatria/psiq/whoqol86.html"><span style="display:inline-block;line-height:11px;max-width:145px;min-width:85px;overflow-x:hidden;overflow-y:hidden;max-height:13px;word-break:break-all;"><span style="color:rgb(153, 153, 153)" class="colour"><span style="font-size:9px" class="size">Visualizar em <b>www.ufrgs.br</b></span></span></span></a><br></div>
</td><td style="vertical-align:middle;width:100px;font-family:"Arial","Helvetica Neue","Helvetica","sans-serif";"><div style="max-width:100px;min-width:80px;overflow-x:hidden;overflow-y:hidden;text-align:right;line-height:11px;max-height:13px;font-size:0pt;"><span style="color:rgb(153, 153, 153)" class="colour"><span style="font-size:9px" class="size">Visualizado por Yahoo</span></span><br></div>
</td></tr><tr><td style="height:9px;background-color:rgb(255, 255, 255);font-size:0pt;border-collapse:collapse;" colspan="2"><div style="height:9px;background-color:rgb(255, 255, 255);font-size:9pt;"> </div>
</td></tr><tr><td style="height:1px;background-color:rgb(229, 229, 229);font-size:1px;border-collapse:collapse;" colspan="8"><div style="height:1px;background-color:rgb(229, 229, 229);font-size:1px;line-height:0px;"> </div>
</td></tr></tbody></table></div>
<div> </div>
<div><ul style="color:rgb(0, 0, 102);font-family:verdana,arial;font-size:small;font-style:normal;font-variant-alternates:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-position:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;widows:1;word-spacing:0px;background-color:rgb(255, 255, 255);"><div><span style=""><b>STEPS FOR CHECKING AND CLEANING DATA AND COMPUTING FACET AND DOMAIN SCORES</b></span><br></div>
<div dir="ltr"><div> </div>
<div>Recode q3 q4 q26 (1=5) (2=4) (3=3) (4=2) (5=1).<br></div>
<div> </div>
<div> </div>
<div>(scores based on a 4-20 scale)<br></div>
<div>compute dom 1= (mean.6 (q3, q4, q10, q15, q16, q17, q18)) * 4.<br></div>
<div>compute dom 2= (mean.5 (q5, q6, q7, q11, q19, q26)) * 4<br></div>
<div>compute dom 3= (mean.2 (q20,q21,q22)) * 4<br></div>
<div>compute dom 4= (mean.6 (q8, q9, q12, q13, q14, q23, q24, q25)) * 4<br></div>
<div>compute overall= (mean.2 (q1, q2)) * 4<span></span><br></div>
<div> </div>
<div>(scores transformed to a 0-100 scale)<br></div>
<div>compute dom1b= (dom1 - 4) * (100/16).<br></div>
<div>compute dom2b= (dom2 - 4) * (100/16).<br></div>
<div>compute dom3b= (dom3 - 4) * (100/16).<br></div>
<div>compute dom4b= (dom4 - 4) * (100/16).<br></div>
<div>compute q1b= (q1 - 1) * (100/16).<br></div>
</div>
<div dir="ltr">compute q2b= (q2 - 1) * (100/16).<br></div>
<div dir="ltr"> </div>
<div dir="ltr"> </div>
<div dir="ltr">Gostaria de replicar este script, alguém poderia me ajudar?<br></div>
<div dir="ltr"> </div>
<div dir="ltr">O link do banco: <a href="http://www.datafilehost.com/d/9bf7dc2d">Download qv.csv</a><br></div>
<div style="width:450px;font-family:"Georgia","Times","Times New Roman","serif";margin-top:5px;margin-bottom:5px;background-color:rgb(255, 255, 255);"><table style="width:450px;height:170px;position:relative;display:block;" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="height:1px;background-color:rgb(229, 229, 229);font-size:1px;border-collapse:collapse;" colspan="8"><div style="height:1px;background-color:rgb(229, 229, 229);font-size:1px;line-height:0px;"> </div>
</td></tr><tr><td style="width:1px;background-color:rgb(229, 229, 229);font-size:1pt;border-collapse:collapse;" rowspan="5"><div style="width:1px;background-color:rgb(229, 229, 229);font-size:1pt;"> </div>
</td><td style="vertical-align:middle;width:168px;height:168px;background-color:rgb(0, 0, 0);border-collapse:collapse;" rowspan="5"><div style="width:168px;" align="center"><a style="text-decoration-color:-moz-use-text-color !important;text-decoration-line:none !important;text-decoration-style:solid !important;color:rgb(0, 0, 0) !important;" href="http://www.datafilehost.com/d/9bf7dc2d"><img style="display:block;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;margin-left-ltr-source:physical;margin-left-rtl-source:physical;margin-right-ltr-source:physical;margin-right-rtl-source:physical;" src="https://www.fastmailusercontent.com/proxy/67610e8a888c38203d5a4375c3cb930ee12d097e818d46b58d2d3027d791fcdc/86474707a3f2f296d676e2461647166696c65686f63747e236f6d6f246f677e6c6f61646e207e676/download.png" alt="image" height="52" width="168"></a><br></div>
</td><td style="width:1px;background-color:rgb(229, 229, 229);font-size:0pt;border-collapse:collapse;" rowspan="5"><div style="width:1px;background-color:rgb(229, 229, 229);font-size:1pt;"> </div>
</td><td style="width:14px;background-color:rgb(255, 255, 255);font-size:0pt;border-collapse:collapse;" rowspan="5"><div style="width:14px;background-color:rgb(255, 255, 255);font-size:14pt;"> </div>
</td><td style="height:6px;background-color:rgb(255, 255, 255);font-size:0pt;border-collapse:collapse;" colspan="2"><div style="height:6px;background-color:rgb(255, 255, 255);font-size:6pt;"> </div>
</td><td style="width:20px;background-color:rgb(255, 255, 255);font-size:0pt;border-collapse:collapse;" rowspan="5"><div style="width:20px;background-color:rgb(255, 255, 255);font-size:20pt;"> </div>
</td><td style="width:1px;background-color:rgb(229, 229, 229);font-size:1pt;border-collapse:collapse;" rowspan="5" width="1"><div style="width:1px;background-color:rgb(229, 229, 229);font-size:1pt;"> </div>
</td></tr><tr><td style="width:100%;vertical-align:middle;font-family:"Georgia","Times","Times New Roman","serif";" colspan="2"><div style="line-height:16.5px;background-color:rgb(255, 255, 255);height:135px;width:245px;"><div style="word-wrap:break-word;word-break:break-all;"><div><span></span><span></span><a style="text-decoration-color:-moz-use-text-color !important;text-decoration-line:none !important;text-decoration-style:solid !important;color:rgb(0, 0, 0) !important;line-height:100%;font-size:18px;display:block;" href="http://www.datafilehost.com/d/9bf7dc2d"><span style="color:rgb(0, 0, 0)" class="colour"><span style="font-size:18px" class="size">Download qv.csv</span></span></a><br></div>
<div style="font-size:13px;line-height:20px;color:rgb(153, 153, 153);max-height:81px;font-family:"Georgia","Times","Times New Roman","serif";overflow-x:hidden;overflow-y:hidden;">Download qv.csv free. File hosted free by DataFileHost.<br></div>
</div>
</div>
</td></tr><tr><td style="height:4px;background-color:rgb(255, 255, 255);font-size:0pt;border-collapse:collapse;" colspan="2"><div style="height:4px;background-color:rgb(255, 255, 255);font-size:4pt;"> </div>
</td></tr><tr><td style="vertical-align:middle;font-family:"Arial","Helvetica Neue","Helvetica","sans-serif";"><div style="font-size:0pt;"><a style="color:black;text-decoration-color:-moz-use-text-color !important;text-decoration-line:none !important;text-decoration-style:solid !important;" href="http://www.datafilehost.com/d/9bf7dc2d"><span style="display:inline-block;line-height:11px;max-width:145px;min-width:85px;overflow-x:hidden;overflow-y:hidden;max-height:13px;word-break:break-all;"><span style="color:rgb(153, 153, 153)" class="colour"><span style="font-size:9px" class="size">Visualizar em <b>www.datafilehos...</b></span></span></span></a><br></div>
</td><td style="vertical-align:middle;width:100px;font-family:"Arial","Helvetica Neue","Helvetica","sans-serif";"><div style="max-width:100px;min-width:80px;overflow-x:hidden;overflow-y:hidden;text-align:right;line-height:11px;max-height:13px;font-size:0pt;"><span style="color:rgb(153, 153, 153)" class="colour"><span style="font-size:9px" class="size">Visualizado por Yahoo</span></span><br></div>
</td></tr><tr><td style="height:9px;background-color:rgb(255, 255, 255);font-size:0pt;border-collapse:collapse;" colspan="2"><div style="height:9px;background-color:rgb(255, 255, 255);font-size:9pt;"> </div>
</td></tr><tr><td style="height:1px;background-color:rgb(229, 229, 229);font-size:1px;border-collapse:collapse;" colspan="8"><div style="height:1px;background-color:rgb(229, 229, 229);font-size:1px;line-height:0px;"> </div>
</td></tr></tbody></table></div>
<div dir="ltr"> </div>
<div dir="ltr"> </div>
</ul></div>
<div><div><div>[ ]'s<br></div>
<div>Edson Lira<br></div>
<div>Estatístico<br></div>
<div>Manaus-Amazonas<br></div>
</div>
</div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>R-br mailing list<br></div>
<div><a href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br></div>
<div><a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br></div>
<div>Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br></div>
</blockquote><div> </div>
</body>
</html>