Displaying 20 results from an estimated 32 matches for "emdbook".
Did you mean:
ebook
2010 Mar 13
2
dmvnorm masked by emdbook
I am using curve3d in the emdbook package to graph a gaussian copula density
function generated via the copula package. Unfortunately, it appears that
emdbook masks dmvnorm from the package mvtnorm in a way that prohibits
copula from generating the gaussian copula. (Sounds very confusing!) For
example,
> library(copula)
> f&l...
2012 Nov 19
2
Ben Bolker's '‘emdbook’ Package , rbetabinom
Hello,
I am using rbetabinom ( to generate beta binomial random variables) function
available in the "emdbook"package written by Professor. Ben Bolker for my
research study.
I have no questions with this function. However, I am looking for the
theoretical method/algorithm of the function "rbetabinom " .
Morris (1997), American Naturalist 150:299-327 is given as the reference in
the package...
2011 Oct 10
1
variable scope for deltavar function from emdbook
Dear all,
I want to use the deltavar() function from emdbook. I can use it
directly from the command terminal but within a function it behaves weird.
Working example:
----------------------
library("emdbook")
fn <- function()
{
browser()
y <- 2
print(deltavar(y*b2, meanval=c(b2=3), Sigma=1) )
}
x <- 2
print(deltavar(x*b1, meanval=c(b1=...
2007 Mar 05
4
about find the solution
If I want to find out the soltion of X1,X2
that min(3X1+2X2+X1X2) subject to
20<=X1+3X2<=50
10<=X1
which function or package can I use?
Thanks.
2008 Aug 01
1
Confidence intervals with nls()
I have data that looks like
O.lengthO.age
176 1
179 1
182 1
...
493 5
494 5
514 5
606 5
462 6
491 6
537 6
553 6
432 7
522 7
625 8
661 8
687 10
704 10
615 12
(truncated)
with a simple VonB growth model from within nls():
plot(O.length~O.age, data=OS)
Oto = nls(O.length~Linf*(1-exp(-k*(O.age-t0))), data=OS,
start=list(Linf=1000, k=0.1, t0=0.1), trace=TRUE)
mod <- seq(0, 12)
2010 Mar 28
3
Ellipse that Contains 95% of the Observed Data
I can take the results of a simulation with one random variable and generate
an empirical interval that contains 95% of the observations, e.g.,
x <- rnorm(10000)
quantile(x,probs=c(0.025,0.975))
Is there an R function that can take the results from two random variables
and generate an empirical ellipse that contains 95% of the observations,
e.g.,
x <- rnorm(10000)
y <- rnorm(10000)
?
2012 Apr 19
1
non-numeric argument in mle2
...argument to mathematical function
Can somenone explain met what this error means? All my parameters and data
are defined, so I don't understand what the non-numeric argument is???
With different equations the script does work...........
For this function to run you need packages: bbmle and emdbook.
Testdata I pasted here
N0 FR
5 4
3 2
5 3
5 4
6 4
5 4
4 2
5 4
6 5
5 3
10 5
14 7
12 6
17 9
10 4
16 8
15 8
14 5
15 6
15 5
19 10
20 11
22 10
21 12
25 12
26...
2011 Oct 17
1
simultaneously maximizing two independent log likelihood functions using mle2
...the model parameter
estimates differ between years, using likelihood ratio tests and AIC.
Can anyone give advice on how to do this?
My likelihood functions are long so I'll use the tadpole predation
example from Ben Bolker's book, Ecological Data and Models in R (p.
268-270).
library(emdbook)
data(ReedfrogFuncresp)
attach(ReedfrogFuncresp)
# Holling Type II Equation
holling2.pred = function(N0, a, h, P, T) {
a * N0 * P * T/(1 + a * h * N0)
}
# Negative log likelihood function
NLL.holling2 = function(a, h, P = 1, T = 1) {
-sum(dbinom(Killed, prob = a * T * P/(1 + a * h * Initial),...
2008 Oct 07
1
Ecological Niche Modelling on R
Dear all,
I have strong interest on Ecological Niche Model, which in general use a set
of environmental variables (continuous, categorical etc) and Presence (or
Presense/Absence) records for species. I think that "grasp" and "adehabitat"
packages could help me on these tasks.
My input layers are on ASC format, and the record of species is a data-frame
with X, Y, name of
2008 Nov 03
2
standard errors for predict.nls?
Dear all,
Is there a way to retrieve standard errors from nls models? The help page tells me that arguments
such as se.fit are ignored...
Many thanks and best wishes
Christoph
--
Dr. rer.nat. Christoph Scherber
University of Goettingen
DNPW, Agroecology
Waldweg 26
D-37073 Goettingen
Germany
phone +49 (0)551 39 8807
fax +49 (0)551 39 8806
Homepage http://www.gwdg.de/~cscherb1
2010 Apr 14
2
curve
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20100414/5386a3c4/attachment.pl>
2010 Sep 15
1
HDP and 99% contour lines
Dear all,
I have a very simple question about how I can include HPD confidence
lines in a Marginal posterior distribution scatterplot
I have the following code to draw the scatterplot(s) from an output
table;
par(mfrow=c(2,2))
plot(temp1[,5], temp1[,6], xlab="log10(r)",
ylab="log10(tf)", pch=46)
plot(temp2[,5], temp2[,6],
2006 Oct 21
1
Book for Maximum Likelihood Methods in R
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20061021/82a1f035/attachment.pl
2007 Jun 13
1
specify constraints in maximum likelihood
Hi,I know only mle function but it seems that in mle one can only specify the bound of the unknowns forming the likelihood function. But I would like to specify something like, a = 2b or a <= 2b where 'a' and 'b' could be my parameters in the likelihood function. Any help would be really appreciated. Thank you!- adschai
[[alternative HTML version deleted]]
2008 Sep 23
4
How to draw the graph of f(x,y) = x * y ?
Dear All,
The function curve() draws the graph of functions from R to R. Is
there some homologous function to curve() to draw functions from R^2
to R?
Thanks in advance,
Paul
2008 Nov 12
1
Generating Data for Simulation
Are there any R packages that could be used to generate random data given a
set of parameters? Or, if not a package, how would one generate such data?
What I would like to do is simulate some sample data for a regression model
given a set of population covariances and distribution parameters to be used
in a MC simulation.
Thanks for any tips.
[[alternative HTML version deleted]]
2011 Jun 16
2
Bayesian Credible Intervals for a Proportion
I am trying to calculate Bayesian Credible Intervals for a proportion
(disease prevalence values to be more specific) and am having trouble using
R to do this. I am working with ncredint() function but have not had success
with it. Please help!
Example:
Positive samples = 3
Total sampled = 10
Prevalence = 0.3
pvec <- seq(1,10,by=1)
npost = dbinom(pvec,10,prob=0.3, log=FALSE)
ncredint(pvec,
2011 Oct 03
1
Quasi-Binomial simulation
Hi
I want to do simulation on quasi-binomial distribution with some covariates.
Does anyone have an idea how to do that?
[[alternative HTML version deleted]]
2007 Jan 11
1
maximum likelihood, 1st and 2nd derivative
Hi guys again, it seems I haven't been doing the maximum likelihood
estimation correctly. I quote below, can someone explain to me please what
does it mean that the 2nd and 3rd derivatives of the function equals zero
and how to compute that in R.
"We have our initial estimated, subjective parameters for the gamma mixture
and we have our likelihood that is the mixture of negative
2011 Feb 15
0
Delta method using numerical derivatives
Dear all,
Is there a fairly general R implementation of the delta method that uses
numerical derivatives?
I realise that the delta method has been implemented using symbolic
derivatives (e.g. alr3::delta.method, emdbook::deltamethod,
msm::deltamethod and survey:::nlcon), however possibly non-linear
estimators using the delta method with numerical derivatives can be
quite useful (e.g. predictnl in Stata and the estimate and predict
statements for proc nlmixed in SAS).
I would like something akin to the following p...