Displaying 20 results from an estimated 700 matches similar to: "Optimal Code for subset of Integer Sets"
2011 Sep 22
1
Error in as.vector(data) optim() / fkf()
Dear R users,
When running the program below I receive the following error message:
fit <- optim(parm, objective, yt = tyield, hessian = TRUE)
Error in as.vector(data) :
no method for coercing this S4 class to a vector
I can't figure out what the problem is exactly. I imagine that it has
something to do with "tyield" being a matrix. Any help on explaining what's
going on
2011 Nov 12
1
State space model
Hi,
I'm trying to estimate the parameters of a state space model of the
following form
measurement eq:
z_t = a + b*y_t + eps_t
transition eq
y_t+h = (I -exp(-hL))theta + exp(-hL)y_t+ eta_{t+h}.
The problem is that the distribution of the innovations of the transition
equation depend on the previous value of the state variable.
To be exact: y_t|y_{t-1} ~N(mu, Q_t) where Q is a diagonal
2006 Jul 24
1
Referring on the value of a counter in a loop
Dear all
The following is a very basic and beginner's question on loops.
Suppose you have data (say, 1000 cases) with two variables named
"answer" (string) and "class" (numeric). The latter runs from 1 to 78
and categorizes the data. I need to create a file "answer_1.txt" for
the cases with class==1, and so on, up to "answer_78.txt"
I have been
2004 Aug 26
2
Label using equivalent of \mathbb{R}
Hi,
I'm trying to label the horizontal axis of a plot with a symbol that is
the equivalent of \mathbb{R} in LaTeX. I've had a look through the help
pages for plotmath and for Hershey and haven't found the symbol. Could
someone give me a pointer, please?
Using R 1.9.1 on Win32.
--
SC
2015 Aug 16
1
[PATCH v2 1/2] virtio-net: rephrase devconf fields description
Clarify general description of the mac, status and
max_virtqueue_pairs fields. Specifically, the old description is
vague about configuration layout and fields offsets when some of
the fields are non valid.
Also clarify that validity of two status bits depends on two
different feature flags.
Signed-off-by: Victor Kaplansky <victork at redhat.com>
---
content.tex | 42
2001 Dec 19
1
dots and ldots in R 1.4.0
I have a package with in the documentation:
in \usage : \dots
in \arguments: \ldots
This is how I interpreted "Use \dots for the dots in function
argument lists ..., and \ldots for ellipsis dots in ordinary
text" in "Writing R Extensions".
When I did `R CMD check' in R version 1.3.1 all was fine.
With R version 1.4.0 I get :
* checking for undocumented arguments
2015 Aug 19
1
[PATCH v2 1/2] virtio-net: rephrase devconf fields description
On Mon, Aug 17, 2015 at 10:43:46AM +0800, Jason Wang wrote:
>
>
> On 08/16/2015 09:42 PM, Victor Kaplansky wrote:
> > Clarify general description of the mac, status and
> > max_virtqueue_pairs fields. Specifically, the old description is
> > vague about configuration layout and fields offsets when some of
> > the fields are non valid.
> >
> > Also
2015 Aug 19
1
[PATCH v2 1/2] virtio-net: rephrase devconf fields description
On Mon, Aug 17, 2015 at 10:43:46AM +0800, Jason Wang wrote:
>
>
> On 08/16/2015 09:42 PM, Victor Kaplansky wrote:
> > Clarify general description of the mac, status and
> > max_virtqueue_pairs fields. Specifically, the old description is
> > vague about configuration layout and fields offsets when some of
> > the fields are non valid.
> >
> > Also
2003 Oct 12
6
Rd problems
Hola!
I have the following in a .Rd file:
\eqn{\mbox{coef} = c(\mbox{coef}[1],\ldots, \mbox{coef}[n]) }
{coef = c(coef[1], coef[2], \dots, coef[n])}
However, both arguments come out in the latex file!
Whats happening?
Kjetil Halvorsen
2003 Oct 24
1
\mathcal symbols in R?
Hello,
Some time ago, I discovered the possibility of using mathematical
symbols for axis labels etc. In order ensure consistency between text
and graphics of some paper, I would like to include the calligraphic H
(obtained in LaTeX via \mathcal{H}) in several diagrams. Is there any
way to do so? Is it in general possible to use further mathematical
fonts like \mathbb and \mathbf in R?
Best
2008 Aug 15
1
Strange error message from geoR´s likfit () lik. max. func.
ComRades:
I am geeting the error message
Error in ldots[[which(MET)]] : attempt to select less than one element
when I try to fit the geostatistical model with the likfit() function of
geoR.
I have tried with old data for which likfit() successfully maximised the
likelihood in previous versions of geoR, and yet the current version
fails.
I have tried in Windows Vista and Windows XP (I haven't
2013 Oct 21
2
Error de markdownToHTML al parsear LATEX
Hola.
Intento crear un archivo .html a partir de un .Rmd que tenga Toc, LaTeX y tablas.
Empleo RStudio (v. 0.97.551), pero aparece un error en la función "markdownToHTML"
Pasos:
1) creo un fichero Rmd (adjunto ejemplo) => con knitr (v. 1.0.5) crea un fichero ".md"
2) Si quiero añadirle el TOC (table of contents) necesito emplear la función "markdownToHTML" del
2010 Jan 29
1
qpois Help problems (PR#14200)
Full_Name: Jerry W. Lewis
Version: 2.10.1
OS: Windows XP Professional
Submission from: (NULL) (198.180.131.21)
In the line
"The quantile is right continuous: qpois(q, lambda) is the smallest integer x
such that P(X <= x) >= q."
"q" is used as a probability when the Arguments section defines it to be a
quantile.
Also there are some representation problems where the
2003 Oct 12
1
Rd problems --- followup
I should'nt have sent the last mail so fast.
Same problem with
\eqn{u_j = a_j + b x + c x^2, \quad j=1, \ldots, r-1}
{u[j] = a[j] + b*x + c*x^2 j = 1,\dots,r-1}
I thought the problem in the first case could have to do with
the use use of \mbox{} (with the braces) within the arguments
of \eqn, but here there are none braces in the arguments of \eqn{}{}.
Another case giving the
2002 Mar 19
2
Suspicious sizes by different C compilers
Hi all,
On my Alpha box running Tru64 5.1, rsync-2.5.4 compiled by GNU gcc
3.0.1 anh GNU make 3.79.1 has this size: 4562848.
The same version of rsync compiled by Compaq C compiler V6.3-028 and
Compaq make has this size: 655424.
It is about _7 times_ smaller!
I did a quick test and they seem both working OK.
Is that normal to see a huge difference in binary size produced by gcc
and vendor's
2013 Oct 22
3
Error de markdownToHTML al parsear LATEX
Hola, primero de todo muchas gracias.
He probado a ejecutar el programa en una máquina virtual y efectivamente
funciona.
La única diferencia con mi ordenador está en locale, que me aparece esto:
> sessionInfor()
locale:
[1] LC_CTYPE=es_ES.UTF-8 LC_NUMERIC=C
[3] LC_TIME=es_ES.UTF-8 LC_COLLATE=es_ES.UTF-8
[5] LC_MONETARY=es_ES.UTF-8
2009 Nov 29
1
optim or nlminb for minimization, which to believe?
I have constructed the function mml2 (below) based on the likelihood function described in the minimal latex I have pasted below for anyone who wants to look at it. This function finds parameter estimates for a basic Rasch (IRT) model. Using the function without the gradient, using either nlminb or optim returns the correct parameter estimates and, in the case of optim, the correct standard
2011 Feb 02
2
Using MathJax in R's help system
Hi,
I am doing a small experiment to test if I can use
MathJax ( official site: http://www.mathjax.org )
in R's html help pages (i.e. options(help_type='html'))
and it seems working with some minor modifications.
The screenshot (rendered by Firefox 4.0 beta and with STIX fonts) of
the help page in html format with MathJax enabled is at the following
url:
2015 Aug 17
0
[PATCH v2 1/2] virtio-net: rephrase devconf fields description
On 08/16/2015 09:42 PM, Victor Kaplansky wrote:
> Clarify general description of the mac, status and
> max_virtqueue_pairs fields. Specifically, the old description is
> vague about configuration layout and fields offsets when some of
> the fields are non valid.
>
> Also clarify that validity of two status bits depends on two
> different feature flags.
>
> Signed-off-by:
2015 Aug 16
5
[PATCH v2 0/2] virtio-net: default_mtu - new conf. field
This set of two patches adds a new field called default_mtu to
the configuration area of network devices. The motivation is to
allow libvirt to set initial MTU different from 1500 on guests
virtual NICs. We also propose to use this new field to report
MTU changes by the guest OS to the device to facilitate
debugging and mtu tunning.
The first patch just clarify the definition of existing fields