the version 2 parser thinks I have unnecessary braces,
but I can't find any. False positive or am I missing
something? If a false positive, is there any way to
work around the warning?
* checking Rd files against version 2 parser ... WARNING
Warning: ./man/dbetabinom.Rd:32-34: Unnecessary braces at ?{p(x) = %
(C(N,x)*Beta(N-x+theta*(1-p),x+theta*p))/%
Beta(theta*(1-p),theta*p)}?
============\details{
The beta-binomial distribution is the result of
compounding a beta distribution of probabilities with
a binomial sampling process. The density function is
\deqn{p(x) = %
\frac{C(N,x) \mbox{Beta}(N-x+\theta(1-p),x+\theta p)}%
{\mbox{Beta}(\theta(1-p),\theta p)}}%
{p(x) = %
(C(N,x)*Beta(N-x+theta*(1-p),x+theta*p))/%
Beta(theta*(1-p),theta*p)}
The parameters \code{shape1} and \code{shape2} are
the more traditional parameterization in terms of
the parameters of the per-trial probability distribution.
}
--
Ben Bolker
Associate professor, Biology Dep't, Univ. of Florida
bolker at ufl.edu / www.zoology.ufl.edu/bolker
GPG key: www.zoology.ufl.edu/bolker/benbolker-publickey.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL:
<https://stat.ethz.ch/pipermail/r-devel/attachments/20090817/fa30dfcf/attachment.bin>
Just a guess but try writing it on one line without the % symbols. On Mon, Aug 17, 2009 at 6:03 PM, Ben Bolker<bolker at ufl.edu> wrote:> > ?the version 2 parser thinks I have unnecessary braces, > but I can't find any. ?False positive or am I missing > something? ?If a false positive, is there any way to > work around the warning? > > * checking Rd files against version 2 parser ... WARNING > Warning: ./man/dbetabinom.Rd:32-34: Unnecessary braces at ?{p(x) = % > (C(N,x)*Beta(N-x+theta*(1-p),x+theta*p))/% > Beta(theta*(1-p),theta*p)}? > > ============> \details{ > ? The beta-binomial distribution is the result of > compounding a beta distribution of probabilities with > a binomial sampling process. ?The density function is > \deqn{p(x) = % > \frac{C(N,x) \mbox{Beta}(N-x+\theta(1-p),x+\theta p)}% > {\mbox{Beta}(\theta(1-p),\theta p)}}% > {p(x) = % > (C(N,x)*Beta(N-x+theta*(1-p),x+theta*p))/% > Beta(theta*(1-p),theta*p)} > The parameters \code{shape1} and \code{shape2} are > the more traditional parameterization in terms of > the parameters of the per-trial probability distribution. > } > > -- > Ben Bolker > Associate professor, Biology Dep't, Univ. of Florida > bolker at ufl.edu / www.zoology.ufl.edu/bolker > GPG key: www.zoology.ufl.edu/bolker/benbolker-publickey.asc > > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >
On 17/08/2009 6:03 PM, Ben Bolker wrote:
> the version 2 parser thinks I have unnecessary braces,
> but I can't find any. False positive or am I missing
> something? If a false positive, is there any way to
> work around the warning?
The problem is that % in Rd is different than % in LaTeX: it causes a
break. So the comment you have at the end of the first arg to \deqn
causes the parser to think you have a one argument version of it,
followed by an unnecessarily braced bit of text.
To fix it, change the two lines
{\mbox{Beta}(\theta(1-p),\theta p)}}%
{p(x) = %
to
{\mbox{Beta}(\theta(1-p),\theta p)}%
}{p(x) = %
Duncan Murdoch
>
> * checking Rd files against version 2 parser ... WARNING
> Warning: ./man/dbetabinom.Rd:32-34: Unnecessary braces at ?{p(x) = %
> (C(N,x)*Beta(N-x+theta*(1-p),x+theta*p))/%
> Beta(theta*(1-p),theta*p)}?
>
> ============ > \details{
> The beta-binomial distribution is the result of
> compounding a beta distribution of probabilities with
> a binomial sampling process. The density function is
> \deqn{p(x) = %
> \frac{C(N,x) \mbox{Beta}(N-x+\theta(1-p),x+\theta p)}%
> {\mbox{Beta}(\theta(1-p),\theta p)}}%
> {p(x) = %
> (C(N,x)*Beta(N-x+theta*(1-p),x+theta*p))/%
> Beta(theta*(1-p),theta*p)}
> The parameters \code{shape1} and \code{shape2} are
> the more traditional parameterization in terms of
> the parameters of the per-trial probability distribution.
> }
>
>
>
> ------------------------------------------------------------------------
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel