Displaying 20 results from an estimated 800 matches similar to: "(no subject)"
2011 May 06
1
Replacing missing values with values before it
I'm using the survey api. I am taking 1000 samples of size of 100 and replacing 20 of those values with missing values. Im trying to use sequential hot deck imputation, and thus I am trying to figure out how to replace missing values with the value before it. Other things I have to keep in mind is if there are two missing values side by side, how do I replace both those values with the value
2010 Feb 10
2
Help Please!
So I have to use this table of min, max, and mean temps for certain years http://www.stat.berkeley.edu/classes/s133/data/january.tab. I am supposed to figure out which year had the hottest January and which had the coldest. But I dont know how to!
Nick Manginelli
[[alternative HTML version deleted]]
2010 Oct 18
2
Randomly shuffle an array 1000 times
Dear List,
I have a table i have read into R:
Name Yes/No
John 0
Frank 1
Ann 0
James 1
Alex 1
etc - 800 different times.
What i want to do is shuffle yes/no and randomly re-assign them to the name.
I have used sample() and permute(), however there is no way to do this 1000 times. Furthermore, i want to copy the data into a excel spreadsheet in the same order as the data was input so i can
2003 Feb 07
1
a question regarding s-plus libraries and R
Hi!
I am a relatively new user of R and I use it to prepare my dissertation. I
have come to some very usefull and specific libraries written for S-PLUS 4
and would like to use them in R. Is that possible? I just found out that one
of these libraries has already been transfered to R, while 3 others have
not. For the matter of beeing more exact I''m interested in the dealing with
missing
2002 Sep 13
1
[LLVMdev] Linux-x86 Compatability
ISSUE: Linux doesn't have any steenking SIGEMT signal, as referred to in
lib/Support/Signals.cpp.
ACTION: Wrap the use with a #ifdef SIGEMT / #endif.
PATCH: Apply from llvm top-level directory with "patch -p0".
--
Casey Carter
Casey at Carter.net
ccarter at uiuc.edu
AIM: cartec69
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
2010 Apr 19
2
Kaplan-Meier survfit problem
When I try to the code from library(survival) of library(ISwR),
the following code
survfit(Surv(days,status==1))
that could produce Kaplan-Meier estimates shows the following error
"Error in survfit(Surv(days, status == 1)) :
Survfit requires a formula or a coxph fit as the first argument"
How it can be done in R.2.10
--
View this message in context:
2001 Sep 20
2
win32:DEVICE_Open Unknown VxD A:. Try --winver nt40 or win31 !
Hi,
I was hoping to use wine to run one of those stupid windows binaries that
generate a floppy (at least IBM has a clue, and also offers the raw floppy
image for dd-ing)
In this case, the culprit is seagate's seatools:
http://www.seagate.com/support/seatools/
I installed wine under debian unstable (Version: 0.0.20010824-1) and when I
run the windows binary under wine, it runs but
2011 Jun 20
2
Error of Cross Validation
Dear R users:
Recently, I tried to write a program to calculate cross-validated predicted
value.
My sources are as follows. However, the R reported an error.
Could you please check the sources? Thanks.
set.seed(100)
x<-rnorm(100)
y<-sample(rep(0:1,50),replace=T)
dat<-data.frame(x,y)
library(rms)
fito<-lrm(y~x)
preo<-predict(fito)
pre<-matrix(NA,nrow=100,ncol=200)
for (i in
2011 Jan 10
2
How to save the output of "split" command as series of .csv files
Hello,
I am looking for a way to quickly split a data frame containing daily
temperature readings into a series of individual data frames, one for each
year, in order to save them as individual .csv files which will be named
according to Year. I would prefer not to use a series of "subset" commands
given that there are a differing number of years for the various location.
The data
2006 Sep 27
1
Any hot-deck imputation packages?
Hi
I found on google that there is an implementation of hot-deck imputation in
SAS:
http://ideas.repec.org/c/boc/bocode/s366901.html
Is there anything similar in R?
Many Thanks
Eleni Rapsomaniki
2007 Sep 11
2
Missing data
Hi all,
I'm looking for a contributed package that can provide a detailed
account of missing data patterns and perhaps also provide imputation
procedures, such as mean imputation or hot deck imputation and the like.
Is there anything out there?
Thanks in advance,
David
--
===========================================================================
David Kaplan, Ph.D.
Professor
2010 Dec 07
4
Creating binary variable depending on strings of two dataframes
Hi,
consider the following two dataframes:
x1=c("232","3454","3455","342","13")
x2=c("1","1","1","0","0")
data1=data.frame(x1,x2)
y1=c("232","232","3454","3454","3455","342","13","13","13","13")
2013 Sep 19
2
(no subject)
Dear R sages,
I used the function rbind to combine a matrix (M) and a vector (Fert) to
get a new matrix (A). This was fine.
The issue is however, that the new matrix A has as its row names the name
of the vector Fert, even though I set teh new vector A to have
dimnames=NULL. See short code below fyi.
*Fert<-c(0,1,5)
*
*M <- matrix(0, 2, 3)
diag(M) <- c(0.3,0.5)
*
*A<-
2004 Nov 15
3
glim in R?
After some futile searches, I decided to ask the list to see
if any of the sages out there would have an answer:
I have a function I wrote a few years ago in S, which calls
glim numerous times. I'd like to port it to R, but glm
works differently from glim, which takes as part of its
input an X design matrix. I probably could write a function
to convert glim to glm, but hope this
2008 Jul 18
2
generate repeats of a vector's elements
Dear all,
I have got a question for generating repeats of a vector's elements.
Please don't hesitate to email me back and say that it is very easy
although I can't find a method to solve it.
If I have a n-vector b, whose elements are b[1], b[2], ..., b[n], how
can I generate such a vector
b[1], b[1], b[2], b[1], b[2], b[3], b[1], b[2], b[3], b[4],
......, b[1], b[2], ...,
2013 Nov 25
0
INTERNAL ERROR: Signal 6
Hallo list,
I am running a samba server on Arch Linux. From time to time I get this error
message in the system log (journalctrl, log from systemd). I have read the
Trouble-Shooting section of the Samba HOWTO as pointed out in the error, but I
could not find anything related. Can s.o. please tell me how to approach this
error, or even tell me that the reason could be.
Any help is really
2006 Jun 24
4
setting attribute in constructor, .NEW works but not .CREATE
I have table "decks" with three fields: "id", "created_at" and "cards"
which is a 264-character string field. I have modified the model with a
constructor, as follows:
class Deck < ActiveRecord::Base
attr_reader :cards
def initialize
@cards = "12345"
end
end
If I call Deck.new from my controller, I get no errors and an object
with the
2008 Nov 24
14
how to test for the empty set
Dear R-help,
I first thought that the empty set (for a vector) would be NULL.
x <- c()
x
However, the documentation seems to make clear that there _many_ empty
sets depending on the vector's mode, namely, numeric(0), character(0),
logical(0), etc. This is borne out by
y <- letters[1:3]
z <- letters[4:6]
intersect(y,z)
which, of course, is non-NULL:
is.null(character(0)) #
2016 Nov 28
4
[RFC] Supporting ARM's SVE in LLVM
On 28 November 2016 at 01:43, Paul Walker <Paul.Walker at arm.com> wrote:
> Reconsidering the above loops with this type system leads to IR like:
>
> (1) <n x 4 x i32> += zext <n x 4 x i8> as <n x 4 x i32> ; bigger_type=i32, smaller_type=i8
> (2) <n x 16 x i8> += <n x 16 x i8>
Hi Paul,
I'm with Mehdi on this... these examples
2010 Jun 03
3
General-purpose GPU computing in statistics (using R)
Hi All,
I have been reading about general purpose GPU (graphical processing units)
computing for computational statistics. I know very little about this, but
I read that GPUs currently cannot handle double-precision floating points
and also that they are not necessarily IEEE compliant. However, I am not
sure what the practical impact of this limitation is likely to be on
computational