This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
## Based on rnw2rmd.pl by Laurent Gatto | |
## https://gist.github.com/lgatto/d9d0e3afcc0a4417e5084e5ca46a4d9e | |
## The script ignores labels and references, un-numbered sections | |
## (section*), quotes and probably a couple of more. It won't deal | |
## with the pre-amble, bibliography and document tags either. Still | |
## useful, though. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Este exemplo provê um código em R que outros usuários podem reproduzir | |
## para facilitar a solução de problemas observados. | |
## | |
## Na R-br em: http://r-br.2285057.n4.nabble.com/R-br-Produzindo-um-Codigo-Minimo-Reproduzivel-CMR-td3674188.html | |
################################################################# | |
## PASSO 1: Carregue os pacotes necessários no início do código | |
################################################################# | |
library(splines) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n_sims = 1_000_000 | |
mle_se = zeros(n_sims) | |
unbiased_se = zeros(n_sims) | |
yatracos_std_se = zeros(n_sims) | |
kourouklis_std_se = zeros(n_sims) | |
for sim in 1:n_sims | |
n = 10 | |
x = randn(n) |