Displaying 20 results from an estimated 5000 matches similar to: "Solved! Thanks! Please Help. Subtraction of Matrices?"
2002 Oct 31
1
Please Help. Subtraction of Matrices?
I am just beginning to learn R. Please help. I have two matrices. One 20
columns by 16 rows represent student responses on a 20 question test. The
second is 20 by 16 representing the correct responses 16
times. Subtracting one from the other should yield 0's if a response is
correct. Yet Response minus Bigkey doesn't work. Documents indicate
vectors should add and subtract, and
2004 Sep 20
0
[Old '.so' file
I noticed the same thing as I reported below, when I upgraded from
R-2.0.0-alpha-20040918 to today's beta version:
'R CMD check' failed as before; but after cleaning 'src' from .o and .so
files, it worked again. So the two-day-old '.so' file is obviously different
from today's. Has compiler directives changed in the two last days? Or what
is happening?
G?ran
On
2005 Mar 27
0
RE: [Rd] F90
G?ran, thanks.
Happy easter!
-----Original Message-----
From: G?ran Brostr?m [mailto:gb at stat.umu.se]
Sent: ned 2005-03-27 07:38
To: Gorjanc Gregor
Cc: r-help at stat.math.ethz.ch
Subject: Re: [Rd] F90
On Sun, Mar 27, 2005 at 03:26:39AM +0200, Gorjanc Gregor wrote:
> Hello!
>
> Has anyone successfully compiled F90 sources in R-package? I found the
> same question on r-devel list
2003 May 14
2
Two names of a function
Is it possible to let a function be known under two names without having
two identical copies of the function body?
---
G?ran Brostr?m tel: +46 90 786 5223
Department of Statistics fax: +46 90 786 6614
Ume? University http://www.stat.umu.se/egna/gb/
SE-90187 Ume?, Sweden e-mail: gb at stat.umu.se
2004 Dec 07
1
read.spss: unrecognized record type
When reading an spss file, I get the following message:
Warning message:
../totmorH.sav: Unrecognized record type 7, subtype 13 encountered in system file.
What does it mean? Do I have to worry? The result looks as expected. I do
not have (easy) access to SPSS, so I cannot check exactly that I got what I
should have.
Thanks,
G??ran
And, I'm using R-2.0.1 on Debian testing (from source).
2005 Mar 24
1
Books on survival analysis and R/S
I will be giving a course in survival analysis using R (of course!) for
people who know nothing about the subject (including R), but know basic
statistics. I'm looking for a suitable course book. Therneau & Grambsch
(2000) is an excellent book, but too much for this course. I need somthing
more elementary.
I have a vague memory saying that such books exist, but I cannot find any
for the
2017 Feb 10
1
Ancient C /Fortran code linpack error
> On 10 Feb 2017, at 14:53, G?ran Brostr?m <goran.brostrom at umu.se> wrote:
>
> Thanks to all who answered my third question. I learned something, but:
>
> On 2017-02-09 17:44, Martin Maechler wrote:
>>
>>>> On 9 Feb 2017, at 16:00, G?ran Brostr?m <goran.brostrom at umu.se> wrote:
>>>>
>>>> In my package 'glmmML'
2003 Jun 16
0
new package: eha
A few days ago I uploaded to CRAN a new package called 'eha', which
stands for 'Event History Analysis'. Its main focus is on proportional
hazards modeling in survival analysis, and in that respect eha can
be regarded as a complement and an extension to the 'survival'
package. In fact eha requires survival. Eha contains three functions
for proportional hazards
2003 Jun 16
0
new package: eha
A few days ago I uploaded to CRAN a new package called 'eha', which
stands for 'Event History Analysis'. Its main focus is on proportional
hazards modeling in survival analysis, and in that respect eha can
be regarded as a complement and an extension to the 'survival'
package. In fact eha requires survival. Eha contains three functions
for proportional hazards
2005 Jan 25
2
tapply and names
I have a data frame containing children, with variables 'year' = birth
year, and 'm.id' = mother's id number. Let's assume that all the births of
each mother is represented in the data frame.
Now I want to create a subset of this data frame containing all children,
whose mother's first birth was in the year 1816 or later. This seems to
work:
mid <-
1999 Dec 07
4
Finding indices with a certain property
I want the indices i for which x[i] < 0 (say):
> x <- c(1, -1, 3, 3, -2)
> where.negative(x)
[1] 2 5
Surely where.negative is something simple, but how?
G?ran
--------------------------------------------------------------
G?ran Brostr?m
Department of Statistics tel: +46 90 786-5223
Ume? University fax: +46 90 786-6614
S-90187 Ume?, Sweden
2016 Apr 29
0
Improper configuration
Something on your end. I clicked on your link and it took me to CRAN
with no problems.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Fri, Apr 29, 2016 at 2:26 PM, G?ran Brostr?m <goran.brostrom at umu.se> wrote:
>
2002 Oct 02
4
Atlas shared
I don't see why the Debian shared libraries shouldn't work, but it's not too
hard to make shared ATLAS: first you need to get the flags for
position-independent code (-fPIC on gcc) into the compilations, which can be
done in the "config" program (add it to the defaults for the C and Fortran
compiler flags), then you extract the object files from the .a archive built
by
2003 Dec 18
1
Manova
Dear R-helpers,
In a data set I got from a medical doctor there are six treatment groups
and (about) 5 bivariate responses in each group. Using 'manova', it is
easy to see significant differences in treatment effects, but the doctor
is more interested in the correlation between the two responses (within
groups). I'm willing to assume a common value over groups, and one way
of
2004 Sep 19
1
Namespace problem
Now I try to add some C and Fortan code to my package, so the NAMESPACE
file is
useDynLib(eha)
importFrom(survival, Surv)
export(mlreg.fit, risksets)
but I get
.....
* checking R files for library.dynam ... OK
* checking S3 generic/method consistency ... WARNING
Error in .try_quietly({ : Error in library(package, lib.loc = lib.loc, character.only = TRUE, verbose = FALSE) :
2004 Oct 07
1
sample suggestion
I have been bitten by what is clearly described on the help page for
'sample', namely sampling from a population of size one. I agree that it is
convenient to have an exception if 'length(x) == 1', but my suggestion is
to enforce the exception only if 'x' is numeric. In any case, if x is not
numeric and of length 1, all you get is an error message.
I would like
2005 Jan 03
1
row ("FORTRAN") order?
Reading about 'R_max_col' in "Writing R extensions", Version
2.1.0,(2005-01-03), I find:
"Given the nr by nc matrix matrix in row ("FORTRAN") order, ..."
Looks like a contradiction to me, since FORTRAN stores matrices
columnwise. So is this a documentation bug?
--
G?ran Brostr?m tel: +46 90 786 5223
Department of Statistics
2004 Apr 02
1
Underscore and ESS
This is a question that I should have sent to 'ess-help', but I
take my chances...
In 'NEWS' (1.9.0) I read the good news
o Underscore '_' is now allowed in syntactically valid names, and
make.names() no longer changes underscores. Very old code
...
but when I try it in emacs (ESS 5.1.24), my '_' are changed to ' <- '!
What can I do?
2005 Aug 19
2
Handling dates
I have a problem with some functions handling dates, in packages 'date' and
'survival' (they seem to be identical). For instance, from the documentation,
--------------------
mdy.date {survival}
R Documentation
Convert to Julian Dates
Description
Given a month, day, and year, returns the number of days since January 1, 1960.
Usage
mdy.date(month, day, year, nineteen = TRUE,
2004 Aug 18
3
Revert a factor to its numeric values
I'm trying a recommendation on the help page for 'factor':
> x <- c(1, 2, 1, 2)
> x <- factor(x, labels = c("one", "two"))
> x
[1] one two one two
Levels: one two
> as.numeric(levels(x))[x]
[1] NA NA NA NA
Warning message:
NAs introduced by coercion
Also,
> as.numeric(as.character(x))
[1] NA NA NA NA
Warning message:
NAs introduced by