<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><div>set.seed(456)</div><div>var <- 150</div><div>w  <- rnorm(1000) * sqrt(varg)<br></div><div><br></div></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">        Fábio Mathias Corrêa<br><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">     Universidade Estadual de Santa Cruz<br>Departamento de Ciências Exatas e da Terra - DCET</div><br><br><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Campus Soane Nazaré de Andrade, km 16 Rodovia Ilhéus-Itabuna<br>CEP 45662-900. Ilhéus-Bahia</div><div style="font-family: 'times new roman', 'new
 york', times, serif; font-size: 12pt; "><br><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Tel.: 73-3680-5076<br><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">De:</span></b> Ricardo Pereira <huahuag@gmail.com><br><b><span style="font-weight: bold;">Para:</span></b> r-br@listas.c3sl.ufpr.br<br><b><span style="font-weight: bold;">Enviadas:</span></b> Terça-feira, 23 de Agosto de 2011 11:23<br><b><span style="font-weight: bold;">Assunto:</span></b> [R-br] gerar dados<br></font><br><div id="yiv1266927547">Outra duvida.<br>Estou tentando simular dados, tal como um exemplo em outro programa...<br>Exemplo abaixo:<br><br>proc iml;<br>do i=1 to 1000;<br>  seed=456;<br>  var=150;<br>  w
 = RANNOR(seed)*SQRT(var);<br>end;<br><br><br>
<b>tentei:</b><br><br>set.seed(456)<br>var <- 150<br>for (i in 1:1000)<br>    {<br>    w [i] <- rnorm * sqrt(varg)<br>    }<br><br><br><b>ERRO:</b><br><span class="yiv1266927547Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium; font-family: Arial; "><span class="yiv1266927547Apple-style-span" style="font-size:16px;line-height:20px;white-space:pre-wrap;"><pre class="yiv1266927547GD40030CLR" style="font-size:12pt
 !important;outline-style:none;outline-color:initial;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-color:initial;white-space:pre-wrap;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:1.3;"><span class="yiv1266927547GD40030CGR">Erro em W[j] <- 1 : objeto 'W' não encontrado</span></pre></span></span><br>
</div><br>_______________________________________________<br>R-br mailing list<br><a ymailto="mailto:R-br@listas.c3sl.ufpr.br" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br><a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br><br></div></div></div></div></body></html>