Displaying 20 results from an estimated 2000 matches similar to: "Question on the idiom: start <- coef; start[fit$pivot] <- coef"
2012 Apr 26
2
How does .Fortran "dqrls" work?
Hi, all.
I want to write some functions like glm() so i studied it.
In glm.fit(), it calls a fortran subroutine named "dqrfit" to compute least
squares solutions
to the system
x * b = y
To learn how "dqrfit" works, I just follow how glm() calls "dqrfit" by my
own example, my codes are given below:
> qr <-
>
2007 Dec 18
1
R-users
R-users
E-mail: r-help@r-project.org
I have a quenstion on "gam()" in "gam" package.
The help of gam() says:
'gam' uses the _backfitting
algorithm_ to combine different smoothing or fitting methods.
On the other hand, lm.wfit(), which is a routine of gam.fit() contains:
z <- .Fortran("dqrls", qr = x * wts, n = n, p = p, y = y *
1999 May 24
1
sum(is.na(c(...)) -> negative number; bug or feature?
As I understand it, sum() treats a logical vectors as 1's and 0's, so
that
> is.logical(c(FALSE,TRUE,FALSE))
[1] TRUE
> sum(c(FALSE,TRUE,FALSE))
[1] 1
However, summing the results of an is.na() yields a
negative number. Eg
> is.na(c(1,NA,3))
[1] FALSE TRUE FALSE
> is.logical(is.na(c(1,NA,3)))
[1] TRUE
> sum(is.na(c(1,NA,3)))
[1] -1
(This is from R Version 0.64.0,
1999 Apr 19
1
Algorithm used by glm, family=binomial?
Does anyone know what algorithm R uses in glm, family=binomial (i.e. a
logit model)?
I assume that it's in the source somewhere, but I wasn't able to find
it. I'd like to know
what file it's in (in a unix distribution of R).
Thanks for your help.
---------------------------
Barnet Wagman
wagman at enteract.com
1361 N. Hoyne, 2nd floor
Chicago, IL 60622
773-645-8369
1999 Apr 25
1
Catching errors?
Is there anyway (other than 'repeat'') of catching the errors that R
throws?
Thanks,
-------------------
Barnet Wagman
wagman at enteract.com
773-645-8369
1361 N. Hoyne
Chicago, IL 60622
--------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
1999 Apr 25
1
Neophyte question re using dyn.load and accessing c functions
I'm have what's probably a trivial &| silly problem trying to access a
c-function in a shared
library ( R 0.64, under redhat linux 5.2).
R COMPILE rctest.c
R SHLIB -o libRC.so rctest.o
produce a reasonable looking shared library ('nm libRC.so' shows that
the function 'rctest' is present).
In R, the command
dyn.load("/fullpathname/libRC.so")
2006 Aug 21
5
lean and mean lm/glm?
Hi All: I'm new to R and have a few questions about getting R to run efficiently with large datasets.
I'm running R on Windows XP with 1Gb ram (so about 600mb-700mb after the usual windows overhead). I have a dataset that has 4 million observations and about 20 variables. I want to run probit regressions on this data, but can't do this with more than about 500,000 observations before
1999 Apr 19
2
A couple problems installing 0.64 (under linux, redhat 5.2)
I'm encountering a couple problems configuring and making R 0.64 under
linux, redhat 5.2
These problems didn't occur when I build 0.63.2
Any suggestions would be greatly appreciated.
(1) configure generates the warning:
"configure: warning: Cannot determine how to create shared libraries.
Please set CPICFLAGS, FPICFLAGS and SHLIBLDFLAGS in `config.site'."
I'm not
2002 Feb 27
1
Bug in glm.fit? (PR#1331)
G'day all,
I had a look at the GLM code of R (1.4.1) and I believe that there are
problems with the function "glm.fit" that may bite in rare
circumstances. Note, I have no data set with which I ran into
trouble. This report is solely based on having a look at the code.
Below I append a listing of the glm.fit function as produced by my
system. I have added line numbers so that I
2006 Jan 12
1
follow-up on qr.coef bug (PR#8478)
The bug I submitted yesterday (It's not entered in the bug data base, so
I have no ID for it) included a suggested fix that
is not correct. It worked for the examples I gave because there was no
pivoting in fact, or only pivot permutations that were
idempotent. A correction that works in general on the examples I gave
makes these two changes in qr.coef():
## coef[qr$pivot, ]
2015 Oct 14
2
failed to pivot job for disk vdc
Hello,
I did a virsh snapshot-create-as --domain meta sn1 --diskspec
vda,file=/var/lib/libvirt/images/meta-sn1.qcow2 --disk-only
--atomic --no-metadata
Then I successfully blockcommitted 2 disks:
virsh blockcommit meta vda --active --verbose --pivot
virsh blockcommit meta vdb --active --verbose --pivot
But when doing
virsh blockcommit meta vdc --active --verbose --pivot
I got:
Block commit:
2012 Sep 07
1
Suggest adding a 'pivot' argument to qr.R
I suggest adding a 'pivot' argument to qr.R, to obtain columns in the
same order as the original x, so that
a <- qr(x)
qr.Q(a) %*% qr.R(a, pivot=TRUE)
returns x.
--------------------------------------------------
# File src/library/base/R/qr.R
qr.R <- function(qr, complete = FALSE, pivot = FALSE)
{
# Args:
# qr: a QR decomposition, produced by qr()
# complete:
2015 Oct 20
2
Re: failed to pivot job for disk vdc
Hello,
it happened with another VM:
# virsh snapshot-create-as --domain rasa sn1 --diskspec
vda,file=/var/lib/libvirt/images/rasa-sn1.qcow2 --disk-only
--atomic --no-metadata
# virsh blockcommit rasa vda --active --verbose --pivot
Block commit: [100 %]error: failed to pivot job for disk vda
error: block copy still active: disk 'vda' not ready for pivot yet
# virsh domblklist rasa
2012 Jul 24
2
Create a Pivot
Hi Friends,
i'm new to R....I have data frame having columns X Y Z....I want to do
pivot on this data frame....can any one help me on this...
Thanks,
Namit
--
View this message in context: http://r.789695.n4.nabble.com/Create-a-Pivot-tp4637629.html
Sent from the R help mailing list archive at Nabble.com.
2015 May 19
3
Re: Pivot without copy
Hi Eric,
Thanks for the info. I see the value in this, but it isn't quite what I was
looking for. Basically what I want to do is to switch between snapshots
quickly. For instance, I am currently working on designing a HA SQL
implementation with failover. So right now I have 5 VM's running postgresql
as a replication group. I am trying a lot of different things and often
have to take a
2015 Jan 07
2
Re: Block Commit: [100 %]error: failed to pivot job for disk vda
On Wednesday 07 January 2015 09:46:09 Eric Blake wrote:
> On 01/07/2015 07:19 AM, Thomas Stein wrote:
> > Hello.
> >
> > I'm seeing this error while doing a backup of a VM.
> >
> > + virsh blockcommit kaltura vda --active --verbose --pivot
> > Block Commit: [100 %]error: failed to pivot job for disk vda
> > error: internal error: unable to execute
2015 Jan 07
2
Block Commit: [100 %]error: failed to pivot job for disk vda
Hello.
I'm seeing this error while doing a backup of a VM.
+ virsh blockcommit kaltura vda --active --verbose --pivot
Block Commit: [100 %]error: failed to pivot job for disk vda
error: internal error: unable to execute QEMU command
'block-job-complete': The active block job for device
'drive-virtio-disk0' cannot be completed
I'm on qemu 2.2.0 and libvirt-1.2.11.
Does
2015 May 19
2
Pivot without copy
Hi,
Is it possible to "pivot" to a new image without doing blockcopy or
blockpull? I know how to use snapshots and blockpull to create a new image
and pivot to using it live, but what I would like to do is to have a VM
switch from using imageA.qcow2 to image2.qcow2 while running. I don't see
why this wouldn't be possible since some of the existing libvirt tools can
do this when
2008 Apr 25
4
Equivalent of Excel pivot tables in R
Can somebody tell me how to do the equivalent of a pivot table in R ?
For example, if I have :
var1 var2 var3
a x 10
b y 20
a z 10
b z 20
a z 10
b z 20
I could have :
x y z
a 1 0 2
b 0 1 2
where entries in the table are counts of var3.
2020 May 08
2
blockcommit --pivot does not succeed in conjunction with qemu 5.0.0
Hello one and all.
Got a problem with libvirt 6.2.0 and qemu 5.0.0.
virsh blockcommit mymachine vda --active --verbose --pivot
works until it shows [100%] but it never actually pivots. It just sits
there. Is this a known issue with 6.2.0 and i should
try 6.3.0? For now i switched back to qemu 4.2.0 and this seems to solve
the issue too. Any hints?
Ahoi! t.