Displaying 20 results from an estimated 10000 matches similar to: "precedence (was 'historical NA question')"
2009 Jan 06
2
Strange error message
I'm testing out some changes to survreg and got the following output, the
likes of which I've never seen before:
----------------------------------------------------------------------
R version 2.7.1 (2008-06-23)
Copyright (C) 2008 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it
1997 Apr 08
2
R-alpha: CRAN source/contrib
I've put all ``current'' add-on packages into CRAN's source/contrib tree
and created an INDEX file (attached below). As you can see, currently
we have
acepack
bootstrap
ctest
date
e1071
fracdiff
gee
jpn
snns
splines
survival4
(Yes, e1071 and jpn are new ... more on the latter in a later mail.)
In the near future, I am hoping for the following:
oz (Bill
2017 Nov 30
3
binary form of is() contradicts its unary form
2017-11-30 14:13 GMT+01:00 Suzen, Mehmet <mehmet.suzen at gmail.com>:
> On 30 November 2017 at 14:04, I?aki ?car <i.ucar86 at gmail.com> wrote:
>>
>> Am I supposed to read every reference on a man page just to know what
>> to expect from a function?
>>
>
> If the reference is from John Chamber, you are supposed to read it.
As a joke, it's funny.
2007 Jul 12
1
p-value from survreg
The question was how to get the p-value from the fit below, as an S object
sr<-survreg(s~groups, dist="gaussian")
Coefficients:
(Intercept) groups
-0.02138485 0.03868351
Scale= 0.01789372
Loglik(model)= 31.1 Loglik(intercept only)= 25.4
Chisq= 11.39 on 1 degrees of freedom, p= 0.00074
n= 16
----
In general, good places to start are
> names(sr)
>
2012 Feb 07
1
na.action in stats::factanal()
> Does factanal() force the user to use the formula interface if they
> wish to specify an na.action?
Short answer: yes.
Long answer: The handling of na.action is a built in part of the formula
processing functions, so it's automatic when dealing with a formula.
There are also downstream effects on predict() and resid() that are
worked out for the formula case, but aren't clear
2005 Jan 07
1
Creating unary operators
Is it correct (by its lack of mention in the R-Language Definition
Manual) that it is impossible to create a user-defined unary operator?
Ex: (This doesn't work, but it's an example of what I'm looking for)
> "%PLUSONE%" <- function(x) x + 1
> %PLUSONE% 2
[1] 3
And if the above is impossible, am I limited to only the + - ~ ! unary
operators for overloading?
On
2011 Oct 03
2
number of copies
I'm looking at memory efficiency for some of the survival code. The
following fragment appears in coxph.fit
coxfit <- .C("coxfit2", iter=as.integer(maxiter),
as.integer(n),
as.integer(nvar), stime,
sstat,
x= x[sorted,] ,
...
Does this make a second copy of x to pass to the routine (my
2020 Jan 10
1
Operator precedence of =, <- and ?
The documentation (help("Syntax")) gives the operator precedence of the
assignment operators and help, from highest to lowest, as:
?<- <<-? assignment (right to left)
?=? assignment (right to left)
??? help (unary and binary)
If I understand correctly this implies that `a = b ? c` and `a <- b ? c`
should parse
2001 Sep 13
2
SV4 on R?
Dear R-Developers,
The traffic today on s-news where Terry Therneau, I, and others
are reporting some of the problems we have had using or
converting applications to SV4 reminded me of something
Duncan Temple Lang had mentioned to me a year ago that
I wanted to follow up on. I recall that Duncan said either that if SV4
were to be implemented in R that it would not be
the default behavior, or
2007 Apr 23
2
Documentation for namespaces
Brian Ripley recently replied to a comment of mine by referring to
a function 'assignInNamespace', which I had not heard of.
Is there a good write up on name spaces in R? There are little tidbits
in the manuals on the R site, but I found nothing substative. I'd like
to understand these better.
Terry Therneau
2006 Jan 06
7
Multiplication (PR#8466)
hi - in version 2.1 the command
>-2^2
gives
-4
as the answer. (-2)^2 is evaluated correctly.
Cheers,
George Casella
--
George Casella Phone: (352) 392-1941 Ext. 204
Distinguished Professor and Chair Cell: (352) 682-7210
Department of Statistics Fax: (352) 392-5175
University of Florida Email: casella at stat.ufl.edu
P.O. Box 118545
Gainesville, FL
2006 Jan 06
7
Multiplication (PR#8466)
hi - in version 2.1 the command
>-2^2
gives
-4
as the answer. (-2)^2 is evaluated correctly.
Cheers,
George Casella
--
George Casella Phone: (352) 392-1941 Ext. 204
Distinguished Professor and Chair Cell: (352) 682-7210
Department of Statistics Fax: (352) 392-5175
University of Florida Email: casella at stat.ufl.edu
P.O. Box 118545
Gainesville, FL
2005 May 31
4
minus: operator and sign (PR#7908)
Full_Name: Allan Sims
Version: 2.1.0
OS: WinXP
Submission from: (NULL) (193.40.25.254)
This should not be correct. It seams that first power is applied and then sign.
> -2^2
[1] -4
2024 Jun 26
2
Fixing a CRAN note
I am trying to clear up all the "NOTE"s before a CRAN submission, but am a bit confused
about this one.?? What is it complaining about -- that it doesn't like my name?
...
* checking for file ?deming/DESCRIPTION? ... OK
* this is package ?deming? version ?1.4-1?
* checking CRAN incoming feasibility ... [7s/18s] NOTE
Maintainer: ?Terry Therneau <therneau.terry at mayo.edu>?
2006 Sep 05
3
terms.inner
Question:
I am trying to impliment a function in R that we use quite regularly in
Splus, and it fails due to a lack of the "terms.inner" function in R.
The substitute is?
Part question and part soapbox:
Why remove terms.inner from R? It's little used, but rather innocuous.
Mostly soapbox:
I figured it was no big deal, as I originally discovered the use of
terms.inner from
2006 Feb 22
4
exponent confusion
please excuse me if this ones a basic error
> y<-c(-0.7,-0.6,-0.5)
> -0.7^1.22
[1] -0.6471718
> y^1.22
[1] NaN NaN NaN
am I missing something important in my basic math?
2016 Apr 15
4
simple interactions
I'd like to get interaction terms in a model to be in another form. Namely, suppose I had
variables age and group, the latter a factor with levels A, B, C, with age * group in the
model. What I would like are the variables "age:group=A", "age:group=B" and
"age:group=C" (and group itself of course). The coefficients of the model will then be
the age effect
2020 Sep 25
1
Extra "Note" in CRAN submission
When I run R CMD check on the survival package I invariably get a note:
...
* checking for file ?survival/DESCRIPTION? ... OK
* this is package ?survival? version ?3.2-6?
* checking CRAN incoming feasibility ... NOTE
Maintainer: ?Terry M Therneau <therneau.terry at mayo.edu>?
...
This is sufficient for the auto-check process to return the following failure message:
Dear maintainer,
2006 May 12
2
reusing routines
I've created some Splus code for a microarray problem that
- needed to be in C, to take advantage of some sparse matrix
properties
- uses a cholesky decompostion as part of the computation
For the cholesky, I used the cholesky2 routine, which is a part of the
survival library. It does just what I want and I'm familiar with it (after
all, I wrote it).
In Splus, this all works
2013 Oct 16
2
How to obtain restricted estimates from coxph()?
Hello,
I'm trying to use coxph() function to fit a very simple Cox proportional
hazards regression model (only one covariate) but the parameter space is
restricted to an open set (0, 1). Can I still obtain a valid estimate by
using coxph function in this scenario? If yes, how? Any suggestion would be
greatly appreciated. Thanks!!!
[[alternative HTML version deleted]]