Displaying 20 results from an estimated 40000 matches similar to: "Changing the value of variables passed to functions as arguments"
2006 Mar 11
6
is there a formatted output in R?
something like "sprintf" in C?
so I can do:
print(sprintf("the correct result is %3.4f\n", myresult));
-------
Also, I am desperately looking for a "clear console screen" function in
R...
thanks a lot!
[[alternative HTML version deleted]]
2005 May 10
2
R Greenhouse-Geiser correction?
Is there a function in R for doing Greenhouse-Geiser correction in ANOVA
models?
Is it already available in the aov function? How do we use it?
Best, Darren
[[alternative HTML version deleted]]
2005 Dec 29
1
Glimmix and glm
Hello.
Some months age an e-mail was posted in which a comparison between Glimmix
and glm was discussed. I have not been able to find that e-mail on the R
archive. Does anyone recall the date of the above e-mail?
Thank you very much.
*******************************************
Antonio Paredes
USDA- Center for Veterinary Biologics
Biometrics Unit
510 South 17th Street, Suite 104
Ames, IA 50010
2007 Jun 06
6
p-value from GEE
Hi to all,
I found in the R-help archive how to calculate the p-value for a gee result:
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/74150.html
but there are two questions (I am afraid they are basic questions ...)
1. why is the result multiplicated with 2
2. how could I decide between lower.tail =TRUE and FALSE:
example:
2006 Oct 07
2
gregexpr in R 2.3.0 != gregexpr in R 2.4.0
Hi all
I have a question regarding differences in the way gregpexr works in R 2.3.0 and R 2.4.0.
In R 2.3.0, this is what happens:
> gregexpr(" [a-z] [a-z] ", " a b c d e f ", perl=T)
[[1]]
[1] 1 3 5 7 9
attr(,"match.length")
[1] 5 5 5 5 5
... while in R 2.4.0, this is what happens:
> gregexpr(" [a-z] [a-z] ", " a b c d e f ", perl=T)
2006 Apr 18
1
predict.nls confidence intervals
Hello-
It has been several years since anyone has asked, so i am asking again- has anyone created a routine to estimate confidence intervals for predictions from nls models (ala Bates and Watts 1988)?
Thanks -
Alice Shelly
[[alternative HTML version deleted]]
2005 Apr 05
2
GLMs: Negative Binomial family in R?
Greetings R Users!
I have a data set of count responses for which I have made repeated observations
on the experimental units (stream reaches) over two air photo dates, hence the
mixed effect. I have been using Dr. Jim Lindsey's GLMM function found in his
"repeated" measures package with the "poisson" family.
My problem though is that I don't think the poisson
2004 Nov 24
2
an R function to search on Prof. Baron's site
Inspired by the functions that Barry Rawlingson and Dave Forrest posted for
searching Rwiki and R-help archive, I've made up a function that does the
search on Prof. Baron's site (Thanks to Prof. Baron's help on setting up the
query string!):
RSiteSearch <- function(string, restrict="Rhelp", format="long",
sortby="score",
2007 Mar 13
2
An example of "overloading" [
Hello:
Could anyone point me to a nice example where someone has created methods
for "[" on a user defined Class?
I looked at the package Matrix but that was a little daunting. I'm looking
for someone a little more introductory. I've tried to search the help
section and the web but its difficult since "[" isn't searchable.
Thanks in advance!
Greg
[[alternative
2005 Jul 08
2
Garch in a model with explanatory variables
Dear helpers,
does anyone know a function to fit a model with:
- y mean that is regressed on a set of explanatory variables
- y variace behaving as a garch or as a garch in mean
Thank you so much for your help,
Carlo
2005 Apr 18
5
the graph gallery strikes back
Hello useRs and helpRs,
Some time ago, in a gallaxy far away (here is the thread :
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/46532.html ) we
discussed about a graph gallery showing the power of R in that domain. I
did some work around that, and there is a (pretty advanced) draft here :
http://addictedtor.free.fr/graphiques/displayGallery.php
For instance, there are some of my graphs,
2006 Sep 13
2
Retrieving value computed in inner function call
Dear R users,
Consider the following example function:
f = function(a,b) {
g = function(x) a*x + b
h = function(x) g(x)^2 + x^2
opt = optimize(h,lower = -1, upper = 1)
x.min = opt$minimum
h.xmin = opt$objective
g.xmin = g(x.min)
return(c(x.min, h.xmin, g.xmin))
}
In my real problem the function that plays the role of "g" is costly
to compute. Now, to
2005 May 10
2
Running R from Perl program
Hi all,
Is it possoble to include an R function in a Perl program? I would like to use
the "limma" library for microarray analysis, and have no clue how this
can be done.
Thanks in Advance
-Tarun
2007 Apr 25
4
How to solve difficult equations?
This below is not solvable with uniroot to find "a":
fn=function(a){
b=(0.7/a)-a
(1/(a+b+1))-0.0025
}
uniroot(fn,c(-500,500)) gives
"Error in uniroot(fn, c(-500, 500)) : f() values at end points not of
opposite sign"
I read R-help posts and someone wrote a function:
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/92407.html
but it is not very precise. Is there any
2005 Oct 18
1
predictive interval in nlme
Suppose I have the following data:
y x id
44 0 104
48 58 104
48 55 204
47 105 204
41 275 206
18 67 209
.......
I fit the model
>fit=lme(y~x+I(x^2),random=~1|id)
Now I want to make a prediction plot:
>time=seq(0,300,len=100)
>plot(predict(fit,data.frame(x=time),level=0))
Very fine. It gives me the prediction curve based on
the model. My further request is to make a confidence
bands
2008 May 06
4
categorical data analysis
hie all
i am trying to carry out a categorical data analysis but my problem is that when in i use the chi squared test some of my expected values are less than 5. is there a test that can handle this situation. the data is not a 2*2 table. its more from the social sciences where you have from strongly agree to strongly disagree. i know i can collapse vthe tables but there is a loss of
2007 Jul 05
2
Adding points to a wireframe with conditioning variable
I would like to add points to a wireframe but with a conditioning variable. I
found a solution for this without a conditioning variable here,
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/65321.html. Does anyone know
how to plot a wireframe conditioned on a variable and add the points
conditioned on the same variable, similar to the solution at the link above?
2006 Dec 08
3
how to create data.frame with dynamic count of values
Hello R-Group
I found how to fill the data.frame ->
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/70843.html
N1 <- rnorm(4)
N2 <- rnorm(4)
N3 <- rnorm(4)
N4 <- rnorm(4)
X1 <- LETTERS[1:4]
###################
nams <- c(paste("N", 1:4, sep = ""), "X1")
dat <- data.frame(lapply(nams, get))
names(dat) <- nams
dat
But I need also to create
2006 Apr 12
3
Variable Scope
Hi,
I was wondering if there is a way to stop R looking outside the scope of
a function, if it can't find the variable inside the function.
I seem to waste hours debugging functions only to find I've used a wrong
variable name somewhere, but the function still works because the
variable exists higher up the hierachy. It seems it would be easier to
debug if the function just went
2008 Dec 07
1
Florida mirror (cran.hostingzero.net) dead?
The CRAN host in Tampa, FL (cran.hostingzero.net)
isn't responding, and hasn't responded in quite a while --
at least problems were reported more than a year ago
(Oct 2007)
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/116706.html
although someone apparently succeeded in July 2008
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/137451.html
Perhaps it's just flaky, and not