similar to: Case statements in R

Displaying 20 results from an estimated 1000 matches similar to: "Case statements in R"

2004 Oct 06
1
R 2.0.0: namespaces, S4 classes & versioned package installation: failure to resolve correct pkg version
Hi, further down from the problem I asked about yesterday I encounter the following problem (please appologize for the lengthy mail - I have not found a brief example making the issue clear): - using R packages making use of namespaces & - S4 classes when using --with-package-versions in the install call: Pkgs install ok and the first pkg 'base' can be loaded in R
2006 Oct 15
1
gamma distribution don't allow negative value in GLMs?
Dear friends, when i use glm() to fit my data, i use glm(formula = snail ~ vegtype + mhveg + humidity + elevation + soiltem, *family = Gamma(link = inverse),* data =a,)) It shows: error in eval(expr, envir, enclos) : *gamma distribution don't allow negative value*. But i use result<-glm(formula = snail ~ vegtype + mhveg + humidity + elevation + soiltem, family = poisson, data =a) #this
2005 Jan 04
1
quantiles for geometric distribution
Dear list, I have got an array with observational values t and I would like to fit a geometric distribution to it. As I understand the geometric distribution, there is only one parameter, the probability p. I estimated it by 1/mean(t). Now I plotted the estimated density function by plot(ecdf(t),do.points=FALSE,col.h="blue"); and I would like to add the geometric distribution. This
2024 Jan 22
3
Use of geometric mean for geochemical concentrations
A statistical question, not specific to R. I'm asking for a pointer for a source of definitive descriptions of what types of data are best summarized by the arithmetic, geometric, and harmonic means. As an aquatic ecologist I see regulators apply the geometric mean to geochemical concentrations rather than using the arithmetic mean. I want to know whether the geometric mean of a set of
2014 Nov 13
1
metafor - code for analysing geometric means
?Dear All I have some data expressed in geometric means and 95% confidence intervals. Can I code them in metafor as: rma(m1i=geometric mean 1, m2i=geometric mean 2, sd1i=geometric mean 1 CI /3.92, sd2i=geometric mean 2 CI/3.92.......etc, measure="MD") All of the studies use geometric means. Thanks! Edward ---------------------------- [[alternative HTML version deleted]]
2024 Jan 22
2
Use of geometric mean .. in good data analysis
>>>>> Rich Shepard >>>>> on Mon, 22 Jan 2024 07:45:31 -0800 (PST) writes: > A statistical question, not specific to R. I'm asking for > a pointer for a source of definitive descriptions of what > types of data are best summarized by the arithmetic, > geometric, and harmonic means. In spite of off-topic: I think it is a good
2008 Mar 16
1
R code for the MLE of a geometric distribution
Does anyone know how to approach R code for the MLE of a geom. distribution? thanks! [[alternative HTML version deleted]]
2006 Apr 04
2
about the generalized linear models
Hello, I'm writng this message to see if anyone knows how to analyze a data with geometrically distributed outcome. My situation now is : I have a outcome which is geometrically distributed. And I've also self-derived the link function for geometric distribution. I want to use generalized linear models to analyze it, but there're only models for binary data, poisson distributed
2009 Apr 03
2
Geometric Brownian Motion Process with Jumps
Hi, I have been using maxLik to do some MLE of Geometric Brownian Motion Process and everything has been going fine, but know I have tried to do it with jumps. I have create a vector of jumps and then added this into my log-likelihood equation, know I am getting a message: NA in the initial gradient My codes is hear # n<-length(combinedlr) j<-c(1,2,3,4,5,6,7,8,9,10)
2010 May 23
4
creating a reverse geometric sequence
Hello, Can anyone think of a non-iterative way to generate a decreasing geometric sequence in R? For example, for a hypothetical function dg, I would like: > dg(20) [1] 20 10 5 2 1 where I am using integer division by 2 to get each subsequent value in the sequence. There is of course: dg <- function(x) { res <- integer() while(x >= 1) { res <- c(res, x) x
2024 Jan 30
2
Use of geometric mean for geochemical concentrations
Dear Rich, It depends how the data is generated. Although I am not an expert in ecology, I can explain it based on a biomedical example. Certain variables are generated geometrically (exponentially), e.g. MIC or Titer. MIC = Minimum Inhibitory Concentration for bacterial resistance Titer = dilution which still has an effect, e.g. serially diluting blood samples; Obviously, diluting the
2008 Dec 08
1
Battlefeild 2- new issue?
ubuntu 8.1 Nvidia 9600GT. Installed BF2 with no problems. Go to run it- first screen comes up, screen blinks, reverts to desktop, changing resolution from 1440x900 to 800x600. so basically it wont even start Ive already tried everything i found in previous forums and appdb (i think ive tried it all) Ive changed the video.con file to read 1024x768 at 60 in the appropiate file. Ive tried
2009 Aug 20
2
Geometric mean of rows in matrix
Is there a function or an easier way to computer geometric means of each rows in a nxn matrix and spit out in an 1xn matrix ? -- Edward Chen [[alternative HTML version deleted]]
2009 Mar 18
2
geometric mean of probability density functions
Hi, This is my first time posting to the mailing list, so if I'm doing something wrong, just let me know. I've taken ~1000 samples from 8 biological replicates, and I want to somehow combine the density functions of the replicates. Currently, I can plot the density function for each biological replicate, and I'd like to see how pool of replicates compares to a simulation I conducted
2009 Jan 11
1
Boxplot from matrices
Hii, I will create boxplots from matrices. I have the following data sets: 5.0 1.78 2.99 2.019 0 10.0 1.79 3.00 1.744 0 15.0 1.78 2.98 1.936 0 20.0 1.78 2.99 1.975 0 25.0 1.73 2.91 3.591 0 30.0 1.79 3.00 1.966 0 35.0 1.79 3.00 2.451 0 40.0 1.79 3.00
2010 Nov 10
2
Performing a geometric seqeunce using iterators?
I want to make a function for geometric seqeunce since testing=function(x){i=1;ans=1;while(true){ans=ans+(1/x)^i ; i=i+1} ;return(ans)} doesn't work... the program is freeze... from my research, i know i should use iterators. I read iterators.pdf at http://cran.r-project.org/web/packages/iterators/iterators.pdf and didnt find it helps solving my problem at all... Is there any sources I
2024 Jan 24
1
Use of geometric mean for geochemical concentrations [RESOLVED]
On Mon, 22 Jan 2024, Rich Shepard wrote: > As an aquatic ecologist I see regulators apply the geometric mean to > geochemical concentrations rather than using the arithmetic mean. I want to > know whether the geometric mean of a set of chemical concentrations (e.g., > in mg/L) is an appropriate representation of the expected value. If not, I > want to explain this to non-technical
2007 Sep 16
2
are hurdle logit-poisson model and posson model nested?
Dear Listers, I have a general statistical question. Are hurdle logit-poisson model and posson model nested? Thank you so much?
2007 Nov 14
2
Generating log transformed random numbers
Dear R users, My question is that how it is possible to generate some random numbers using rnorm( ) function but in log transformed values. Thank you, Tobias --------------------------------- [[alternative HTML version deleted]]
2010 Mar 22
3
Embed R code in C++
Hi, Can anyone tell me how to embed R code in a C++ file. I am actually using a mac running on the OSX 10.6.2 and the IDE Xcode Version 3.2 and I would like to embed the basic function like geometric, binomial, normal and hyper geometric distributions in a sample cpp file. I heard about the library RInside and i have downloaded the source code for mac but i do not know how to build it in