Le jeu. 6 sept. à 09:45, excalibur a écrit :
Hello everybody, has anyone got a function for smooth monotonic
interpolation
(splines ...) of a univariate function (like a distribution
function for
example) ?
approxfun() might be what your looking for.
, reproducible code.
---
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do
-July/
136137.html) you quote a negative scale parameter. The Pareto I know
has strictly positive shape and scale parameters.
Perhaps can you retry with functions ppareto() or pgenpareto() of
package actuar.
---
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval
with the pgpd() function, you should contact the
maintainer of package POT, as the Posting Guide asks.
HTH
Vincent Goulet wrote:
Le 07-07-11 à 07:56, livia a écrit :
Hi, I would like to use the following codes to plot the CDF for
pareto
distribution. Before doing this, I have plot
@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-
guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Vincent Goulet, Professeur agrégé
École d'actuariat
Université
this
version altogether.]
Collaboration is welcome. Please contact me directly.
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
___
R-packages mailing list
Le Vendredi 20 Avril 2007 11:23, vous avez écrit :
From: Vincent Goulet
Le Vendredi 20 Avril 2007 07:46, Julien Barnier a écrit :
Hi,
I have written a function which computes variance, sd,
r^2, R^2adj etc. But i am not able to return all of
them in return statement.
You
,
Julien
--
Vincent Goulet, Professeur agrégé
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
code.
---
Vincent Goulet, Professeur agrégé
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
Package:
http://vgoulet.act.ulaval.ca/actuar/
HTH
--
Vincent Goulet, Associate Professor
Ãcole d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch mailing list
https
the warning. Executing your code piece by piece would tell you
that.
That said, you probably rather want to use inherit() for such purposes.
HTH
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
in -NULL : invalid argument to unary operator
I know I could use ifelse, but it would complicate my model a lot.
Is there
a direct way to specify that the number of columns to remove is 0?
Pierre Lapointe
Would
aa - if (n 0) aa[, -n] else aa
still be too complicated?
---
Vincent Goulet
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
value
returned by rnorm(), etc.
Am I missing what you want to do?
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch mailing list
.]
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
,Insp9
Thanks.
Charles Annis, P.E.
[EMAIL PROTECTED]
phone: 561-352-9699
eFax: 614-455-3265
http://www.StatisticalEngineering.com
paste() will do what you want.
--
Vincent Goulet, Professeur agrégé
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http
},
alsoletter={.\%},%
alsoother={:_\$}}
\lstset{language=Renhanced,extendedchars=true,
basicstyle=\small\ttfamily,
commentstyle=\textsl,
keywordstyle=\mdseries,
showstringspaces=false,
index=[1][keywords],
indexstyle=\indexfonction}
with
[EMAIL PROTECTED]
--
Vincent Goulet
Le Dimanche 17 Septembre 2006 14:12, Duncan Murdoch a écrit :
On 9/17/2006 12:36 PM, Vincent Goulet wrote:
Hy all,
Is there a direct way to build the complete function call of an arbitrary
function?
Here's what I want to do. A function will build a function which will
itself call
the whole thing as a character
string. Would it be the only option?
Thanks for any help.
--
Vincent Goulet, Professeur agrégé
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch
=FALSE=
[(women,1)
@
echo=FALSE, eval=TRUE=
[(women,1)
@
I often end up doing similar things.
HTHVincent
--
Vincent Goulet, Professeur agrégé
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R
:
f - ~ x | y + z
f[[2]]
x | y + z
f[[2]][[2]]
x
f[[2]][[3]]
y + z
Bye!Vincent
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
--
Vincent Goulet, Professeur agrégé
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch mailing
prepare an English version of
the document.
The document is published under the GNU Free Documentation License.
In the hope the document may be useful,
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
in advance !
I don't know the answer to your exact question, but: why not simply \input the
LaTeX version of the help page in your document?
--
Vincent Goulet, Professeur agrégé
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
.
Can someone tell me how?
Thanks so much,
Jen
What about
x - 1
(where 'x' is a vector of 1's and 2's)?
--
Vincent Goulet, Professeur agrégé
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R
--- where the third dimension is of varying length. Wow.
I agree, though, that the result of 'print' on such an object is not crystal
clear (but does make sense).
[...]
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http
packages on my 'testing'
system is to list them all in /etc/apt/preferences. It is neither convenient
nor safe since I will eventually miss unlisted packages.
Thanks in advance!
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http
be redundant. (True R wizard can
correct me if I,m not accurate.)
When I first encountered R's man pages, I thought they were rather sparse
compared to those of S-Plus. Now I find they are just to the point and so
much easier to consult!
--
Vincent Goulet, Professeur agrégé
École d'actuariat
. Is there a more elegant and automatic solution to
this problem?
See the Sweave FAQ:
http://www.ci.tuwien.ac.at/~leisch/Sweave/FAQ.html#x1-16000A.14
--
Vincent Goulet, Professeur agrégé
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
, no matter the value of argument 'n'.
Building also on Jim Holtman's comment, may I rather suggest
csr - function(n=60)
{
x - cbind(runif(n), runif(n))
plot(x, col=rep(c(blue, red, green), each=20, length.out=n))
x # why not return the values...
}
HTH
--
Vincent Goulet
' or 'data[[1]]'.
I'd use different names...
HTH.
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman
in proportions, not in frequencies.
--
Vincent Goulet, Professeur agrégé
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r
nothing in case of
an error?
Thanks in advance!
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch
,
Vincent
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
)
Vincent Goulet wrote:
Is there a canonical way to check if all elements of a vector or matrix
are the same? Solutions below work, but look hackish to me.
x - rep(1, 10)
all(x == x[1]) # == operator does not provide for small differences
[1] TRUE
isTRUE(all.equal(x, rep(x[1], length(x
3.351211e-19 2.758626e-19
[6] 3.530111e-19 2.735041e-19 2.376711e-19 2.591287e-19 3.196405e-19
sum(fsc)# no impact on the sum
[1] 1
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
Le 27 Avril 2005 14:06, Paul Smith a écrit :
I would like to draw a picture with the density curve of a normal
distribution over a histogram of a set of random numbers extracted
from the same normal distribution. Is that possible?
Sure. See curve() with add=TRUE. Don't forget to use prob=TRUE
, but one cannot redefine
them. In other words, TRUE and FALSE are also reserved names in S-Plus.
So, using TRUE and FALSE seems to be a common denominator for R and S-Plus
(and a sensible choice, for that matter). That's what I teach my students.
Vincent
--
Vincent Goulet, Associate Professor
--
Vincent Goulet, Professeur agrégé
École d'actuariat
Université Laval, Québec
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
on
Tuesdays --- by using a cron job instead. (That's assuming you're using a
Unix variant, I suppose there is some equivalent way to achieve the same
thing on Windows.)
Regards,
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http
]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL
likelihood estimation, look into 'fitdistr'
in package MASS.
Hope this helps!
--
Vincent Goulet, Professeur agrégé
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
R-help@stat.math.ethz.ch mailing
of:
u - function(x, Ed) ifelse(x 2 * Ed, 0.5 * x, 1)
curve(u(x), ...)
(Note that this does take the case x = Ed into account, which is not covered
in your definition.)
HTH
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http
]]
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
--
Vincent Goulet, Professeur agrégé
École d'actuariat
Université Laval, Québec
/posting-guide.html
--
Vincent Goulet, Associate Professor
École d'actuariat
Université Laval, Québec
[EMAIL PROTECTED] http://vgoulet.act.ulaval.ca
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE
45 matches
Mail list logo