Objects of chunks not showing in environment

5 views
Skip to first unread message

DrunkenPhD

unread,
Feb 2, 2015, 3:04:42 PM2/2/15
to kn...@googlegroups.com
Hi I got this chunks and I need the first one results to be used for the second one and so on

None of the objects created are shown in environment

<<ch1, fig.width=3, fig.height=2.5, out.width='.49\\linewidth', fig.show='hold',size='scriptsize',message=FALSE>>=
set.seed(1001)
N <- 100
x <- rnorm(N, mean = 3, sd = 2)
mean(x)
sd(x)
@

<<ch2, fig.width=3, fig.height=2.5, out.width='.49\\linewidth', fig.show='hold',size='scriptsize',message=FALSE>>=

LL<- function(mu, sigma){R = dnorm(x, mu, sigma)- sum(log(R))}
@


<<ch3, fig.width=3, fig.height=2.5, out.width='.49\\linewidth', fig.show='hold',size='normalsize',message=FALSE>>=
library(stats4)
mle(LL, start = list(mu = 1, sigma=1))
@

Please help
Reply all
Reply to author
Forward
0 new messages