search for: deqn

Displaying 20 results from an estimated 40 matches for "deqn".

Did you mean: dean
2008 Nov 14
1
Line breaks in mathematical formulae in Rd files (PR#13287)
Hi, This is a problem about writing R documentation (R-exts 2.6). The command "\deqn" defined in "Rd.sty" is: \newcommand{\deqn}[2]{\[#1\]} which will put mathematical formulae in the "displaymath" environment; that means line breaks are not allowed (or will not be shown) in formulae, but sometimes we do need multiple lines of formulae. One solution is to...
2000 Apr 17
3
Maths in R documentation (PR#523)
The document R-exts contains the following example of using mathematics in R documentation. \deqn{p(x) = {\lambda^x\ \frac{e^{-\lambda}}{x!}} {p(x) = lambda^x exp(-lambda)/x!} There is a syntax error in there, but that's not my point. The problem is that using "R CMD Rd2dvi" I find that putting the alternate forms of the equation on top of each other doesn't work. \deqn...
2008 Aug 25
1
Displaying Equations in Documentation
...e coding in equations. For example, the equation in the following: \details{ Calculated the R Squared for observed endogenous variables in a structural equation model, as well as several other useful summary statistics about the error in thoe variables. R Squared values are calculated as \deqn{R^{2} = 1-\frac{estimated variance}{observed variance}} Standardized error coefficients are then calculated as sqrt(1 - R^2). } While it shows normally using R CMD Rd2dvi, when I actually compile and load the package, displays as follows: R^{2} = 1-frac{estimated variance}{observed variance}...
2009 Oct 10
2
Possible bug in the Rd parser?
...ors found: ! Misplaced alignment tab character &. I noticed that the Rd parser changed quite recently and that '#', '_' and '&' must not be escaped according to "Writing R extensions". However, the problematic .Rd portion seems (to me) OK \deqn{\theta(h) = \begin{cases} u_\beta \left(\mu + \frac{\nu(h)}{\Gamma(1 - \xi)} \right),&\xi \neq 0\\ \exp\left(\frac{\nu(h)}{\sigma}\right),&\xi = 0 \end{cases} }{u_beta (mu + nu(h) / Gamma(1 - \xi)), if \xi < 1,...
2011 Feb 02
2
Using MathJax in R's help system
.../HTML-CSS"],\n', < 'tex2jax: {inlineMath: [["$","$"]]}\n', < '});\n', < '</script>\n') --- > and the modified R-2.12.1/src/library/base/man/svd.Rd: for demonstration: 47,51c47,50 < \deqn{ \mathbf{X} = \mathbf{U D V}^\top,} where \eqn{\mathbf{U}} and \eqn{\mathbf{V}} are < orthogonal, \eqn{\mathbf{V}^\top} means \emph{V transposed}, and < \eqn{\mathbf{D}} is a diagonal matrix with the singular < values \eqn{D_{ii}}{D[i,i]}. Equivalently, \eqn{\mathbf{D} = < \mat...
2015 Jan 03
4
Potential cross-platform package building issue
I am using 32-bit R 3.1.2 on Windows 7. I recently conducted an `R CMD check --as-cran` on a recently-developed package and received only the 'New submission' note. Research on StackOverflow and on R-devel suggested this could be ignored. I also used devtools::build_win() and received no notes or warnings, other than the one mentioned previously. Lastly, I conducted an `R CMD check` with
2009 Aug 17
2
unnecessary braces?
....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 o...
1997 Jul 28
0
R-alpha: R 0.50.a1: patch for NChisquare documentation
The patch below fixes the NChisquare documentation problem that I've been mentioning for some time now. NOTE: There is one DEQN where the LaTeX part contains real LaTeX code, because I did not see how to get a sum sign (and a roman math font) otherwise. Seems to work, though ... MARTIN? -k ********************************************************************** *** src/library/base/man/NChisquare.orig Sat Jul 26 10:50:54 1...
1997 Aug 27
2
R-alpha: Proposal for a new R doc source format
...mph{word} LANG \code{word} PARA \par BLANK \blank LINK \link{...} DOTS \dots LDOTS \ldots EQUALS \= ???but why is this needed??? LT \lt GT \gt ... replace all math constructs with latex commands Equation commands: EQN() \eqn{A1}{A2} ??? or \eqn[A2]{A1} ??? DEQN(A1 @@ A2) \deqn{A1}{A2} where A1 is pure latex and A2 is an ascii version of the formula. If only one argument is given, A1 and A2 are taken to be the same (such that we don't have to write \eqn{x}{x}). \eqn corresponds to latex's $$ and \deqn corresponds to \[ \]. Hard line break -----...
1997 Sep 01
1
R-alpha: old Rdoc 2 new Rdoc
...0]\}^\{$args[1]\}/s; } if($cmd =~ /SUB/){ @args = get_two_args($id); $text =~ s/SUB$id(.*)$id/\{$args[0]\}_\{$args[1]\}/s; } if($cmd =~ /CHOOSE/){ @args = get_two_args($id); $text =~ s/CHOOSE$id(.*)$id/\{$args[0] \\choose $args[1]\}/s; } } } print stderr "deqn ... " if $opt_debug; while(($text =~ /DEQN($ID)/)){ $id = $1; @args = get_two_args($id); $text =~ s/DEQN$id(.*)$id/\\deqn\{$args[0]\}\{$args[1]\}/s; } print stderr "eqn ... " if $opt_debug; replace_command_all("EQN", "eqn"); print stderr "done...
2006 Jan 14
0
Rd file--latex {array} help
I am trying to build the notation for combination as the function \code{choose} in a *.Rd file; but it is not working. To reduce to essence \deqn{ \left( \begin{array}{c} r-1 \\ n \end{array} \right) } I have double checked the latex logic (without \deqn{}) in LaTexIT on MacOSX so it seems fine. I've read the R-ext.pdf and down some searching in the archives--stumped. R CMD Rd2dvi --pdf rend...
2010 Mar 23
1
Displaying equations from .Rd files
Hi All, I am reading through section 2.6 (Mathematics) of the "Writing R Extensions" manuscript and am wondering where I can find more examples/documentation on the \deqn{ } function. I would like to learn how to display equations using this function but am not sure how to go about doing it. The one example provided in section 2.6 doesn't give me much of a sense on how to do this. Thank you, AC [[alternative HTML version deleted]]
2011 May 18
1
Integral Symbol
Dear All, I am documenting a R package. That means writing the *.Rd files inside the \man folder of the package structure I was wondering how to write the symbol for an integral function in a formula. Similar to this one in LaTeX: \int_{0}^{10} \Omega(t)dt I already tried \deqn{\int_{0}^{10} \Omega(t)dt} but it does not work. Any idea? Which math symbols does R-help recognise? Regards, Javier Hidalgo Carrio [[alternative HTML version deleted]]
2009 May 05
0
Rd parsing
...so I thought > I'd ask you > directly. Any ideas? > > best wishes > > Robin > > > > > I am having difficulty including a LaTeX formula in an Rd > file. > > The example given in section 2.7 in 'Parsing Rd files' is: > > > \deqn{ f(x) = \left\{ > \begin{array}{ll} > 0 & x<0 \\ > 1 & x\ge 0 > \end{array} > \right. }{non latex} > > > For me, this gives: > > \deqn{ f(x) = \left\{ > \begin{array}{ll} > 0 \& x<0 \bsl{} > 1 \& x\ge 0 &g...
2012 Dec 10
1
Long equation in documentation
I have a long equation that I need to break in the R documentation of a package or it trails off the right hand side of the page. Here's the formula: \deqn{Cov(r_{ist}, r_{iuv})= [.5\rho_{ist}\rho_{iuv}(\rho_{isu}^2 + \rho_{isv}^2 + \rho_{itu}^2 + \rho_{itv}^2) + \rho_{isu}\rho_{itv}+ \rho_{isv}\rho_{itu}-(\rho_{ist}\rho_{isu}\rho_{isv} + \rho_{its}\rho_{itu}\rho_{itv}) + \rho_{ius}\rho_{iut}\rho_{iuv} + \rho_{ivs}\rho_{ivt}\rho_{ivu}]/n_i} How can...
2005 Nov 17
4
problem with \eqn (PR#8322)
Full_Name: Ross Boylan Version: 2.2.0 OS: Linux Submission from: (NULL) (65.175.48.58) \eqn{{\bf\beta}_j}{b(j)} in my .Rd file produces this error -------------------------------------------- ! Missing $ inserted. <inserted text> $ l.7 \eqn{{\bf\beta}_j}{\bf\beta}_ jnormal-bracket5bracket-normal{b(j)} -- ! Missing $ inserted. <inserted
2005 Mar 01
1
Two problems building a package
...of my .Rd files and would like to check that I've coded them correctly in the documentation before submission. So far, my html and latex docs don't contain a details section, even though they contain all other recent changes. My detail section looks like this: \details{blah blah blah \deqn{blah = Blah}{% blah = Blah} where \eqn{blah}{%blah} = frequency of \emph{b} in Blah. Blah blah blah. } Any help would be greatly appreciated. Cheers, Kurt Wollenberg, PhD Tufts Center for Vision Research New England Medical Center 750 Washington St, Box 450 Boston, MA, USA kwollenberg...
2008 Nov 13
1
Experimental Rd parser in trunk.
I've just committed the parse_Rd() function to R-devel. This is a parser for Rd files, described in http://developer.r-project.org/parseRd.pdf It is not identical to the current parser, and about a dozen of the base man pages currently signal syntax errors. It also detected errors in 10 files that were errors according to both definitions, but were missed by the current system, and
2008 Dec 07
2
Checking your package's help files
...at worse nonsense. 3) Grep the installed help for internal constructs, e.g. grep nornal-bracket <installed-package>/help/* Three ways I have found such constructs to appear in the processed files: a) If you see 'eqnnormal-bracket' then you have a one-argument \eqn (or possibly \deqn) command immediately followed by }. This is correct Rd but mis-processed in earlier versions of R. In all the cases I have seen it comes from grammatically incorrect help files of the form \item{foo}{... \eqn{x}} where the item should end in ',' or '.'. But if you don't w...
2007 Apr 10
1
When to use quasipoisson instead of poisson family
It seems that MASS suggest to judge on the basis of sum(residuals(mode,type="pearson"))/df.residual(mode). My question: Is there any rule of thumb of the cutpoiont value? The paper "On the Use of Corrections for Overdispersion" suggests overdispersion exists if the deviance is at least twice the number of degrees of freedom. Are there any further hints? Thanks. -- Ronggui