Displaying 4 results from an estimated 4 matches for "victordelgado".
2012 Jan 03
6
calculate quantiles of a custom function
Hi,
I guess that my problem has an obvious answer, but I have not been able to
find it.
Suppose I create a custom function, consisting of two beta-distributions:
myfunction <- function(x) {
dbeta(x,2,6) + dbeta(x,6,2)
}
How can I calculate the quantiles of myfunction?
I have not seen any continous function treated in the docs, and applying the
"quantile function" gives me an
2012 Nov 02
2
Merge data frame with mispelling characters
Hello dear R-helpers,
I'm working with R-2.15.2 on Windows 7 OS. I'm stucked with a merge of two
data frames by characters.
In each data frame I got two different list of names, that is my main-key to
be merged.
To figure out what I'm saying, I build up a modified "?merge" example, with
errors by purpose:
# Data for authors:
authors <- data.frame(
surname =
2011 Jul 08
1
Getting wrong NA values using "for" cmd
Hi There,
I'm facing one problem to construct a vector using the "for" command:
I have one matrix named 'dados' (same as /data/ from portuguese), for
example:
> dados[140:150,]
[,1] [,2] [,3]
[1,] 212.7298 0.14 0.11
[2,] 213.3778 0.14 0.11
[3,] 214.0257 0.15 0.11
[4,] 214.6737 0.15 0.12
[5,] 215.3217 0.15 0.12
[6,] 215.9696 0.15 0.12
[7,] 216.6176 0.16
2011 Dec 28
2
Gale-Shapley Algorithm for R
Dear R-helpers,
I'm not a speciallist in writing complex functions, and the function still
very rusty (any kind of suggestions are very welcome). I want to implement
Gale-Shapley algorithm for R Language. It is based on
http://www.jstor.org/stable/10.2307/2312726 Gale and Shapley (1962) , and it
has evolved to