# here's your example correlation matrix:
sigma<- matrix(c(1.00, 0.75, 0,
0.75, 1.00, 0,
0.00, 0.00, 0), nr=3, byrow=TRUE)
chol(sigma)
# Error in chol(sigma) : the leading minor of order 3 is not positive definite
# DUH!
# let's chop off that dangling row and col
what version of Wine are you running? and is this the patched (1.4.1) version
of
WinBUGS that you're trying to run?
cheers,
thomas.
> Date: Thu, 26 Jul 2007 12:03:38 -0400 (EDT)
> From: <[EMAIL PROTECTED]>
> Subject: [R] error in using R2WinBUGS on Ubuntu 6.10 Linux
> To: r-help@stat.math.
mike,
try installing directly using apt-get instead of Synaptic.
in my /etc/apt/sources.list i added the line:
deb http://cran.R-project.org/bin/linux/ubuntu/ dapper/
and then i did:
bash$ sudo apt-get install r-base r-doc-info r-doc-pdf r-doc-html
r-mathlib r-base-html
r-b
the transform that i provided orientates the data matrix so that when plotted
with image
or levelplot the result is isomorphic to what you see when you print the matrix
at the r
prompt.
i don't know what your data look like---"commented, minimal, self-contained,
reproducible
code" would help---
rm(list=ls(all=TRUE))
graphics.off()
# make a test matrix:
nr<- 3
nc<- 4
# the data:
( m<- matrix((1:(nr*nc)), nr, nc) )
[,1] [,2] [,3] [,4]
[1,]147 10
[2,]258 11
[3,]36
below is a very simple bash script to run Sweave from a cygwin terminal, run
pdflatex on
the generated .tex file, and then view the resulting .pdf output.
i usually use cygwin when i am (forced to be on) Windoze, but i found a few
issues
with paths that this script works around.
pdfview, used
--- Friedrich Leisch <[EMAIL PROTECTED]> wrote:
> >>>>> On Sat, 26 Aug 2006 05:38:58 -0700 (PDT),
> >>>>> Thomas Harte (TH) wrote:
>
>
> > hallo, friedrich, and thanks for your reply.
>
> > if i Stangle your code i get:
>
--- Friedrich Leisch <[EMAIL PROTECTED]> wrote:
> >>>>> On Fri, 25 Aug 2006 11:05:48 -0700 (PDT),
> >>>>> Thomas Harte (TH) wrote:
> > i can get pretty close to this in linux by writing a function to save the
> > plot to a pdf device:
&g
\end{itemize}
There are, however, advantages to doing things this way:
\begin{itemize}
\item I can save the plot to a file without writing any other code;
\item I can include the saved plot in my \LaTeX\ figure, allowing me to
fine-tune with the [EMAIL PROTECTED]@ command.
\end{itemize}
\end{
the problem is a little hard to explain; the .Rnw files (below)
probably do a better job, but here goes ...
Sweave doesn't like it when i size a graphical device in a code
chunk using either, e.g.:
windows(width=20, height=5)
in Windows, or, e.g.
x11(width=20, height=5)
under X
ndows FAQ 2.8 - works well.
-Christos
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas Harte
Sent: Wednesday, April 26, 2006 2:54 PM
To: r-help@stat.math.ethz.ch
Subject: [R] copying previously installed libraries to R 2.3.0
hi all,
is there a ne
hi all,
is there a new mechanism in R 2.3.0 for copying libraries from, say, R 2.2.1 to
R 2.3.0? i ask because gabor grothendieck comments in his copydir.bat (from
gabor's batchfiles at:
http://cran.r-project.org/contrib/extra/batchfiles/batchfiles_0.2-5.zip ):
``:: I personally upgraded my
# clear everything:
rm(list=ls(all=TRUE))
detach()
graphics.off()
# make a test matrix:
( m<- matrix((1:12)/12, 3, 4) )
library(gplots)
# display the test matrix:
image(m, col=colorpanel(12, "darkblue", "yellow", "white"), axes=FALSE)
# here's the action pa
13 matches
Mail list logo