Displaying 3 results from an estimated 3 matches for "laperriere".
Did you mean:
laferriere
2010 Mar 09
5
is there an inverse method for table()?
Hi,
In R, I know the method table(), which builds a contingency table of the counts y at each level for the factor x.
But I would like to know what is the inverse method of table(), if it exists, to obtain the vector z, from the two vectors x and y?
x <- (86, 90, 94, 98, 102, 106, 110, 114, 118, 122, 126, 130, 134, 138, 142, 146, 150, 154, 158, 162, 166, 170, 174)
y <- c(2, 5, 10, 17,
2010 Mar 08
2
fit a gamma pdf using Residual Sum-of-Squares
Hi all,
I would like to fit a gamma pdf to my data using the method of RSS (Residual Sum-of-Squares). Here are the data:
x <- c(86, 90, 94, 98, 102, 106, 110, 114, 118, 122, 126, 130, 134, 138, 142, 146, 150, 154, 158, 162, 166, 170, 174)
y <- c(2, 5, 10, 17, 26, 60, 94, 128, 137, 128, 77, 68, 65, 60, 51, 26, 17, 9, 5, 2, 3, 7, 3)
I have typed the following code, using nls method:
2010 Apr 19
1
fit a deterministic function to observed data
Hi all,
I am not a mathematician and I am trying to fit a function which could fit my observed data.
Which function should I use and how could I fit it to data in R?
Below are the data:
x <- c(0, 9, 17, 24, 28, 30)
y <- c(500, 480, 420, 300, 160, 5)
I use R for Mac OS, version 2.10-1 2009-08-24
Thank you for your help.
Vincent.
[[alternative HTML version deleted]]