Displaying 20 results from an estimated 300 matches similar to: "Applying a function to all combinations of factors"
2008 Feb 18
2
skip non-converging nls() in a list
Howdee,
My question appears at #6 below:
1. I want to model the growth of each of a large number of individuals using
a 4-parameter logistic growth curve.
2. nlme does not converge with the random structure that I want to use.
3. nlsList does not converge for some individuals.
4. I decided to go around nlsList using:
t(sapply(split(data, list(data$id)),
function(subd){coef(nls(mass ~
2008 Feb 15
2
lmList, tapply() and lm()
Howdee,
*** I know that the lmList() function exists, yet I don't want to use it.
***
Would anyone be kind enough to tell how I can apply the function lm() to
each level of a given factor so to obtain the intercept and slope for each
factor level within a matrix?
For instance, suppose a dataframe containing 3 variables: id, x and y.
I want to compute the function lm() for each level
2008 Jan 29
0
number of rescaling cycles in decorana
How do one dertermine the optimal number of rescaling cycles to use when
performing DCA using the decorana function (library vegan)?
Thanks for your time,
Marc
===================
Marc Bélisle
Professeur adjoint
Chaire de recherche du Canada en écologie spatiale et en écologie du paysage
Département de biologie
Université de Sherbrooke
2500 Boul. de l'Université
Sherbrooke, Québec
J1K 2R1
2003 Oct 31
4
dnorm() lead to a probability >1
Howdee,
One of my student spotted something I can't explain: a probability >1 vs a
normal probability density function.
> dnorm(x=1, mean=1, sd=0.4)
[1] 0.9973557
> dnorm(x=1, mean=1, sd=0.39)
[1] 1.022929
> dnorm(x=1, mean=1, sd=0.3)
[1] 1.329808
> dnorm(x=1, mean=1, sd=0.1)
[1] 3.989423
> dnorm(x=1, mean=1, sd=0.01)
[1] 39.89423
> dnorm(x=1, mean=1, sd=0.001)
[1]
2009 Jun 05
3
from 3 numeric variables to a string
Hi there,
I have 3 numeric variables: day (e.g., 05), month (e.g., 06), year (e.g.,
2009).
I would like to create a (string) variable of the following form:
month/day/year (e.g., 06/05/2009).
I would be grateful to anyone who could point me toward a solution.
Sincerely,
Marc
===================
Marc B?lisle
Professeur agr?g?
Chaire de recherche du Canada en ?cologie spatiale et en ?cologie
2008 Feb 19
0
nlsList - Error in !unlist(lapply(coefs, is.null))
Howdee,
I am able to fit a 4-parameter logistic growth curve to a dataset which
comprise many individuals (using R v. 2.3.1). Yet, if I want to obtain the
parameters for each individual (i.e., for each 'id') using nlsList, then I
obtain an Error message which I have trouble interpreting. Any advice as to
how I can solve this problem?
Thanks for your time,
Marc
> reg <-nls(mass ~
2005 Apr 25
0
(sans objet)
Hi
I’m working in behavioural ecology I’m interesting in doing a
multi-factorial MANOVA with a random effect as of independent variable.
Do you know if it’s possible to do that and how I can do it?
Thanks
Julien
Julien Martin
Laboratoire de Denis Réale
Chaire de Recherche du Canada en écologie comportementale
Canadian Research Chair in behavioural ecology
Département des sciences
2013 Dec 12
1
censored counts and glmer/glmmADMB
dear R-users,
I have to model counts where all counts above some threshold
have been censored. In the same dataset I have too many zeroes for
a Poisson or even a negative binomial distribution to make
sense, so I would need a zero-inflated-censored negative binomial
family for use in glmer (or glmmADMB?). That seems not to exist.
my question is :
how could I add a custom-built family of
2001 Nov 06
2
Canonical Correspondence analysis-CoCoAn package
Hi R-users,
I am new to R environment.I want to carry out a
correspondence analysis on a contigency table with 64
columns and 298 observation of Environmental data.In
many cells of the contigency table the frequency is
just the value '1'.
I got the following error.
> CAIV(Eplankton)
Error in if (L[i, j] < 0) return("Table L must contain
non-negative numbers") :
2001 May 29
3
geary statistics
Hello,
i' m looking for a function to compute geary statistic for spatial correlation.
Thanks.
--
St?phane DRAY
---------------------------------------------------------------
Biom?trie et Biologie ?volutive - Equipe "?cologie Statistique"
Universite Lyon 1 - Bat 711 - 69622 Villeurbanne CEDEX - France
Tel : 04 72 43 27 56 Fax : 04 78 89 27 19
04 72 43 27 57 E-mail
2005 Feb 28
5
persistance of factor levels in a data frame
Hi,
Just something I don't understand:
data <- data.frame(V1=c(1:12),F1=c(rep("a",4),rep("b",4),rep("c",4)))
data_ac <- data[which(data$F1 !="b"), ]
levels(data_ac$F1)
Why the level "b" is always present ?
thanks
Tristan, R 2.0.1 for Linux Fedora 3
--
------------------------------------------------------------
Tristan
2002 Jul 18
2
RODBC and Excel Files
Hello,
I am trying to play with RODBC library and Excel Files. In my file
(doubs.xls) there are 2 spreadsheets:
> library(RODBC)
> connection<-odbcConnect("Excel Files")
> sqlTables(connection)
TABLE_CAT TABLE_SCHEM TABLE_NAME TABLE_TYPE REMARKS
1 F:\\Th?se\\R\\Doubs NA Faune$ SYSTEM TABLE NA
2 F:\\Th?se\\R\\Doubs NA Milieu$
2004 Jul 07
1
AW: boxplot a list of objects
One possibility ist
boxplot(sapply(ListOfNames, get, env = .GlobalEnv))
Hope that this helps
Thomas
-----Urspr??ngliche Nachricht-----
Von: Lefebure Tristan [mailto:Tristan.Lefebure at univ-lyon1.fr]
Gesendet: Mittwoch, 7. Juli 2004 10:34
An: r-help at stat.math.ethz.ch
Betreff: [R] boxplot a list of objects
Hi list,
#Imagine we have vectors of different length (in practice 100 vectors):
2005 Jan 06
1
RSvgDevice incomplete svg output
Hi
I use RSvgDevice to output plot, and modify them using svg editor (inkscape or
sodipodi on Linux). Some month ago, results were perfect. I did exactly the
same analysis today on the same data, and unfortunatly the results are
different. While looking to the svg file, it seems that all information
concerning "fill" and "stroke" of objects are lost. The consequence is that
2012 Dec 15
2
troubles reading a text file
Dear R experts,
For quite some time I have been trying to solve a mistery of reading a seemingly trouble-free text file. The data is temperature reconstruction arranged as a huge grid, preceded by seven "header lines" (which you see better if file is opened in Firefox or Chrome).
This is the data (gridded temperature reconstruction)
2012 Dec 18
0
R function for computing Simultaneous confidence intervals for multinomial proportions
Dear all,
Does someone know an R function implementing the method of Sison and
Glaz (1995) (see full ref below) for computing Simultaneous confidence
intervals for multinomial proportions?
As alternative method, I think to boostrap the mean of each proportion
and get in that way confidence interval of the mean.
I observed 21 times a response that could be one out of 8 categories
2003 Jun 03
3
lda: how to get the eigenvalues
Dear R-users
How can I get the eigenvalues out of an lda analysis?
thanks a lot
christoph
--
Christoph Lehmann <christoph.lehmann at gmx.ch>
2003 Jun 06
2
Moran's index
Hi,
I am looking for some code for Moran's I. Has anyone previously done this?
I have been unable to find it in the search engines.
James
2003 Jan 30
3
Principal comp. scores in R
Hello, I am trying to run a PCA in R and I cannot get the PC scores for
each of the values. Using pcX <- princomp(X) then loadings(pcX) I can get a
listing of the eigenvectors but not the actual PC scores for each value in
the dataset. I greatly appreciate any help anyone can offer
Thanks
Ken
2002 Nov 02
2
Partial Least Squares
Hi everybody!
Is there any package or functions to make Partial Least Squares
analysis with R?
Thanks a lot
Luis
--------------------------------------------
sapo.pt/kitadsl
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or