Displaying 20 results from an estimated 10000 matches similar to: "Any simple way to make this happen?"
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
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
2008 Dec 20
1
Help in Lattice!
Hi -
How can I add different notes in different panels?
My data looks like
ID Dose Visit Value
1 1 0 0.5 -6.5802e-02
2 1 0 1.0 2.4085e-01
3 1 0 1.5 -2.2907e-01
4 1 0 2.0 2.4074e-01
... ... ... ... ...
270 45 30 3.0 -8.1316e-01
271 46 30 0.5 -2.0786e-01
272 46 30 1.0 -2.9336e-01
273 46 30 1.5 -5.5657e-01
274 46 30 2.0 -2.1659e-01
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 =
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.
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
2008 Sep 10
3
writing simple function through script
Hi all,
I try to write a simple function in a script. The script is as follows
yo<-function(Xdata)
{
n<-length(Xdata[,1])
Lgm<-nls(formula=LgmFormula,
data=Xdata,
start=list(a=1500,b=0.1),weights=Xdata$Qe)
return(Lgm)
}
After the execution of the script, when I call the function yo on data
called NC60.DATA I get an error.
#yo(NC60.DATA)
Erreur dans eval(expr, envir, enclos)
2013 Jul 11
1
Easy way to debug code
Hi,
Trying to write a generic function to deal with either arrays or strings.
Here''s a cutdown version of what I''m writing highlighting the problem I
have.
All i''m trying to do is take ''server1.testing.com'' from the variable
$server (the variable being either a string or an array) and assign it to
$bar, or assign
2014 Apr 25
3
Proper way to make Asterisk recognize SIP trunk of incoming INVITE when IP is not available
I am currently preparing a kamailio-asterisk combination. The asterisk installation uses realtime for SIP. The kamailio configuration was based on the reference at http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb but has been
heavily modified. Currently asterisk runs on localhost and only listens on SIP/RTP at 127.0.0.1 . Therefore, all of the SIP traffic appears to
2008 Jan 30
4
Multiplying each row of a big matrix with a vector
I have a big matrix 'ret'. I want to multiply each row of it with a 2nd vector 'pos', resulting result, I want to save in a vector named 'port'. I wrote following code:
> pos
[1] 2593419 2130220 6198197 1673888 1980000 1784732 2052120 -7490228 -5275000
> dim(ret)
[1] 500 9
> fu # user defined function
function(x)
{
fu = x %*%
More clear statement about the question of how to generate regression matrix with correlation matrix
2003 Jul 12
1
More clear statement about the question of how to generate regression matrix with correlation matrix
Dear R community:
I am trying to do a simulation study mentioned by Fu (1998), Journal of Computational and Graphical Statistics, Volume7, Number 3, Page 397-416. In order to give a clear statement of quesion I copy the following paragraph from the article: We compare the bridge model with the OLS, the lasso and the ridge in a simulation of a linear regression model of 30 observations and 10
2006 Jan 27
4
regular expressions, sub
Hi,
I am trying to use sub, regexpr on expressions like
log(D) ~ log(N)+I(log(N)^2)+log(t)
being a model specification.
The aim is to produce:
"ln D ~ ln N + ln^2 N + ln t"
The variable names N, t may change, the number of terms too.
I succeded only partially, help on regular expressions is hard to
understand for me, examples on my case are rare. The help page on R-help
2011 May 26
5
Survival: pyears and ratetable: expected events
Dear all,
I am having a (really) hard time getting pyears to work together with a
ratetable to give me the number of expected events (deaths).
I have the following data:
dos, date of surgery, as.Date
dof, date of last follow-up, as.Date
dos, date of surgery, as.Date
sex, gender, as.factor (female,male)
ev, event(death), 0= censored at time point dof, 1=death at time point dof
Could someone
2013 Oct 04
20
[Bug 70135] New: [nv34 PowerMac G5] gnome-shell random crashes and rendering issues
https://bugs.freedesktop.org/show_bug.cgi?id=70135
Priority: medium
Bug ID: 70135
Assignee: nouveau at lists.freedesktop.org
Summary: [nv34 PowerMac G5] gnome-shell random crashes and
rendering issues
QA Contact: xorg-team at lists.x.org
Severity: normal
Classification: Unclassified
OS: Linux
2018 Feb 20
3
JGR not installed. Attempting to install from CRAN...
Loris, thank you thank you so much!!!
do you know which CRAN mirror i select? There are loads - all related to various countries..
so appreciate the help
Jenny
Jenny Coetzee (PhD Candidate)
Head of Prevention in Key Populations & Head of the Soweto Sex Worker Project
Perinatal HIV Research Unit (PHRU)
New Nurses Home
Chris Hani Baragwanath Academic Hospital
Soweto
B: +27 11 989 9821
M:
2012 Feb 27
2
CDR Analyzer/Queue stats reporting
I've been tasked with finding and implementing a CDR/Queue analyzer to provide information to management about the call center's performance. My Google-fu seems to be returning a lot of things that are more or less abandoned projects. Does anyone have any recommended solutions for a CentOS 6 / Asterisk 10 "vanilla" server? Not opposed to something commercial, provided it
2004 Aug 31
7
blockwise sums
I am looking for a function like
my.blockwisesum(vector, n)
that computes sums of disjoint subsequences of length n from vector
and can work with vector lengths that are not a multiple of n.
It should give me for instance
my.blockwisesum(1:10, 3) == c(6, 15, 24, 10)
Is there a builtin function that can do this?
One could do it by coercing the vector into a matrix of width n,
and then use
2015 Feb 17
10
[Bug 89186] New: Artifacts after waking up from suspend
https://bugs.freedesktop.org/show_bug.cgi?id=89186
Bug ID: 89186
Summary: Artifacts after waking up from suspend
Product: xorg
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee:
2003 Jul 08
2
specifying multiple parameter starting values in nlm
Hi there
I am having trouble figuring out how to get an nlm function to report estimates
for two parameter values in an estimation.
The way I've got it goes something like this:
f <- function (q, r)
{
here, I have a second loop which uses q, r to give me values for c, d below. a
and b are already specified; this loop is a mass-balance function where I am
trying to find values of q,