Displaying 9 results from an estimated 9 matches similar to: "Help in Lattice!"
2012 Dec 28
3
Any simple way to make this happen?
Hi,
The data is
x <- c(4,3,5);
I need to translate it to
y <- c(1,2,3,4,1,2,3,1,2,3,4,5);
i.e. for each number in x, we need to generate 1:x and put it in y.
The program need to evaluate this type of calculation for millions of times in simulation. Is there any elegant way to make this happen without iteration?
Many thanks!!
Best,
Haoda
[[alternative HTML version deleted]]
2009 Jul 14
2
How do I know where is R? - VB Programming
Dear all -
Is there anyone know how to let VB or C# know where I install R
automatically(i.e. auto detect R directory)?
Many thanks!
Best,
Haoda
2008 Oct 17
4
R plot
All -
When I plot something like
a<-rnorm(5)
b<-rnorm(5)
plot(a,b,col = "red")
points(10,-10)
The last point is missing because it is out of
range of the first plot.
I just try to switch from Matlab to R. In Matlab,
it always can automatic adjust the xlim and ylim
for such case.
Is it possible auto adjust in R? Otherwise
keep tracking xlim and ylim is really annoying.
2010 Dec 12
1
R Plots for Recurrent Events - Suggestions are needed
Hi,
I am wondering if there is a simple way to plot MCF(mean cumulative function) for recurrent events in R?
MCF (http://www.weibull.com/hotwire/issue57/relbasics57.htm)
And do you have some other recommendation in visualize recurrent events?
I did some research online. Some people use ggplot2 to plot MCF, but it requires some additional coding.
http://user2010.org/slides/Shentu.pdf
Your help
2009 Jan 04
1
Lattice xyplot help please.
Hi -
I am not R expert and I would appreciate your time if you can help me
about my xyplot question.
I would like to add text (p-value) in a 4 panels xyplot. I thought
panel = function{} should work but I am not sure where I did it wrong.
The error message from the following code is
"Argument subscripts is missing with no default values"
xyplot(GLG ~ PD | factor(TRT) , groups =
2009 Jul 08
1
A Lattice Question
To the Lattice expert -
I am new to the lattice package and I would like to add a curve to the
xyplot(). I know that I need to use panel function to add it. But it doesn't work. Is there anyone can help me out on how to transfer the data into the function?
The following is my code and I would like to add lines for xx,yy
xx <- seq(0,1,length = 100);
yy <-
2009 Jul 20
2
HELP: BRUGS/WinBUGS/RBUGS Response is a combination of random variables
Hi,
Is there anyone know if BUGS language allows the combination of variables as response
such as
Y[i] <- a*X1[i]+b*X2[i]
Y[i] ~ dnorm(c,d)
It seems doesn't work in my model. The problem is between two ######.
The error message is
> modelCheck("BayesBioMarker.BUGS")
model is syntactically correct
> modelData(paste("BUGS_data.txt",sep=""))
data
2009 Jun 29
5
Help
Hi group,
I found a module for adaptive kernel density estimation for Stata users, but unfortunetly I don't have access to Stata, can I find a similar approach using R?
Thank u so much 4 ur time.
[[alternative HTML version deleted]]
2009 Jul 09
2
How to Populate List
Hi,
I'm new to R and would like to know, how one can populate the list with array data.
I'm reading a tab separated table in R. The data in the table looks something like this.
#Table Data
Comp A B C
Extracellular 103 268 535759
Nucleus 45603 47783 442744
#R code
myData <- read.table("table.data",
header=T,