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="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: 'Lucida Console'; font-size: 16px; line-height: 20px; text-align: -webkit-left; white-space: pre-wrap; "><pre tabindex="0" class="GD40030CLR" style="font-family: 'Lucida Console'; font-size: 12pt !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="GD40030CGR">Erro em W[j] <- 1 : objeto 'W' não encontrado</span></pre></span></span><br>