Dear fellow R-users,
Say we have a matrix x, defined as follows
set.seed(50)
x <- matrix(rbinom(100*5,1, p=0.75),nrow=100, ncol=5)
Now the interpretation of x is that each for of x is actually a sequence of
length 5, and i would like to transform x in such a way that I can describe the
frequen
Hi fellow R-users,
Are there any text editors that recognize sweave (.rnw) files? I am running
Windows Vista and in the past I used Tinn-R for R files but it (surprisingly)
doesn't recognize rnw files and does not do any syntax highlighting for them.
Thanks in advance,
Greg
___
and ends at 3, and the second segment starts at location 8 and ends
at location 10. Is there an efficient way of doing this in R without having to
right a bunch of if-else conditions? I know the rle function will report the
length of the segments but not the endpoints.
Thanks in advance.
Greg
http://www.rumipambadelzuro.com/waqztn/hyd.cn?gdqk
Gregory Gentlemen
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
http://www.rideonthewaves.com/gtbzkeql/yi.mceeu?pihsc
Gregory Gentlemen
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
Fellow R-users,
I have a longitudinal data set with missing values in it. I would like to
produce a residual plot for each time using panel.xyplot function but I get an
error message. Here's a simple example,
library(nlme)
set.seed(1544)
longdata <- data.frame(ID=gl(10,1,50), y=rnorm(50), time
Dear R-users,
Is there an R function to compute the multinomial beta function? That is, the
normalizing constant that arises in a Dirichlet distribution. For example, with
three parameters the beta function is Beta(n1,n2,n2) =
Gamma(n1)*Gamma(n2)*Gamma(n3)/Gamma(n1+n2+n3)
Thanks in advance for
Dear fellow R-users,
Is there a function that does the bisection method? I was unable to find one.
Thanks in advance.
Gregory
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-h
If uniroot is not a bisection method, then what function in R does use
bisection?
Thanks.
--- On Fri, 9/10/10, David Winsemius wrote:
From: David Winsemius
Subject: Re: [R] Is there a bisection method in R?
To: "huang min"
Cc: "Gregory Gentlemen" , r-help@r-project.
Now that is a more useful reply than "Why do you assume there is one?". Thanks
a lot Ravi!
--- On Fri, 9/17/10, Ravi Varadhan wrote:
From: Ravi Varadhan
Subject: RE: [R] Is there a bisection method in R?
To: "'Peter Dalgaard'" , "'Gregory Gentlem
Fair enough. I didn't intend to offend anyone. Please accept my apologies.
Greg
--- On Mon, 9/20/10, peter dalgaard wrote:
From: peter dalgaard
Subject: Re: [R] Is there a bisection method in R?
To: "Gregory Gentlemen"
Cc: "Ravi Varadhan" , r-help@r-project.org
Recei
y 5 matrix where the columns are the sums of A+B
measurements for each of the 5 variables.
Thanks for any help.
Gregory Gentlemen
-
[[alternative HTML version deleted]]
__
R-help@r-project.org mai
Hello fellow R users,
I wanted to view the density on the standard deviation scale of a gamma(0.001,
0.001) prior for the precision. I did this as seen in the code below and found
that for some reason rgamma is giving many values equal to zero, which is
strange since a gamma distribution is con
if
I wanted to plot a density of an inverse gamma distribution with small scale
and shape parameters, how would I do so?
Peter Dalgaard <[EMAIL PROTECTED]> wrote: Gregory Gentlemen wrote:
> Hello fellow R users,
>
> I wanted to view the density on the standard deviation scale of a
Hello fellow R users,
I have a matrix computation that I imagine should be relatively easy to do,
however I cannot figure out a nice way to do it. I have two matrices, for
example
mat1 <- matrix(c(1:5,rep(NA,5), 6:10), nrow=3, byrow=T)
mat2 <- matrix(c(2:6, 6:10, rep(NA,5)), nrow=3, byrow=T)
I
Dear R users,
I'd like to evaluate a vector of characters. For example, say I have a data
frame called Data including the field names x1, x2, x3, and I'd like to a list
out of paste("Data$x", 1:3, sep=""). How can I get list to evaluate
paste("Data$x", 1:3, sep="") as an R object rather than a
Hi R users,
Simply question: On the command line, how do I list the datasets contained
within a package, e.g. MASS?
I scanned the mailing list history but was unable to find the answer.
Thanks in advance.
Gregory
-
Thanks in advance for any help.
All the best,
Gregory Gentlemen
-
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE d
m I am indexing the rows of large matrices according
to another variable and I need to test when the resulting matrices have 0, 1 or
more rows.
Thanks in advance for any assistance.
Best regards,
Gregory Gentlemen
-
[[alternative HTML vers
19 matches
Mail list logo