Displaying 20 results from an estimated 500 matches similar to: "Selecting First Incidence from Longitudinal Data"
2013 Feb 26
3
Merging value labels into indicator variable.
I have a vaiable named NAM having value : 1,2,3,4,5,6,7,8,9. I want to
make an indicator variable that will take value 1 if NAM=7 or NAM=8 or
NAM=9. How can I do that?
I usually do: Var001<- ifelse(NAM==7,1,0) for the simplest case.
[[alternative HTML version deleted]]
2013 Mar 21
5
Help on indicator variables
I have two indicator variables ABS and DEFF. I want to create another
indicator variable which will take value 1 if either ABS=1 or DEFF=1.
Otherwise, it will take value 0. How can I make that?
[[alternative HTML version deleted]]
2013 Apr 09
2
R crash
I have a generalized linear model to solve. I used package "geepack". When
I use the correlation structure "unstructured", I get a messeage that- R
GUI front-end has stopped working. Why this happens? What is the solution?
The r codes are as follows:
a<-read.table("d:/bmt.txt",header=T")
2013 Feb 05
1
Calculating Cumulative Incidence Function
Hello,
I have a problem regarding calculation of Cumulative Incidence Function.
The event of interest is failure of bone-marrow transplantation, which may
occur due to relapse or death in remission. The data set that I have
consists of- lifetime variable, two indicator variables-one for relapse and
one for death in remission, and the other variables are donor type (having
3 categories), disease
2012 Mar 13
1
how to write crossed and nested random effects in a model
Dear R Users,
I have a question based on my research. I am analyzing reader-based
diagnostic data set. My study involves diabetic patients who were evaluated
for treatable diabetic retinopathy based on the presence or absence of two
pathologies in their eyes. Pathologies were identified using the clinical
examination (Gold standard method). In addition it can be identified by
taking digital
2011 Mar 30
6
Quick recode of -999 to NA in R
Hi,
I am trying to write a loop to recode my data from -999 to NA in R. What's
the most efficient way to do this? Below is what I'm presently doing, which
is inefficient. Thanks,
Chris
dat0 <- read.table("time1.dat")
colnames(dat0) <- c("e1dq", "e1arcp", "e1dev", "s1prcp", "s1nrcp", "s1ints",
2010 Dec 14
1
rpart - how to estimate the “meaningful” predictors for an outcome (in classification trees)
Hi dear R-help memebers,
When building a CART model (specifically classification tree) using rpart,
it is sometimes obvious that there are variables (X's) that are meaningful
for predicting some of the outcome (y) variables - while other predictors
are relevant for other outcome variables (y's only).
*How can it be estimated, which explanatory variable is "used" for which of
2006 Sep 22
2
Merge problem
Hello all,
I have read as many merge issues as I possibly could tonight and
although I presume this is a small error, I have not found the
solution to my problem.
I'm trying to merge two data sets: dat0 and TransTable. As you can
see below, dat0 has 8000 rows, whereas TransTable has 47296 rows. I
would expect when I merge the two data sets, with all.x=F, and
all.y=F, that the
2006 Oct 18
1
MARS help?
I'm trying to use mars{mda} to model functions that look fairly
close to a sequence of straight line segments. Unfortunately, 'mars'
seems to totally miss the obvious places for the knots in the apparent
first order spline model, and I wonder if someone can suggest a better
way to do this. The following example consists of a slight downward
trend followed by a jump up after
2010 Oct 01
1
add a new column to data frame
Hi, I am wondering if anyone can propose a simple/best way to do the following:
Let's say I have a data frame
dat <-
cbind(expand.grid(mode=c('right','left'),time=0:3,id=c('p1','p2','p3')),y=c(3,5,rep(4,6),6,2,rep(3,6),4,4,rep(2,6)))
dat
mode time id y
1 right 0 p1 3
2 left 0 p1 5
3 right 1 p1 4
4 left 1 p1 4
5 right 2
2002 Feb 20
3
Pointer to covariates?
In the first line, use the dist function, found in library mva,
to get the distance between each pair of rows. From this
calculate an incidence matrix for which element i,j is true if
row i in dat equals row j in dat (and false elsewhere).
In the second line, for each row calculate the indices of
the matching rows and take the minimum of those as the key.
incid <-
2011 Jun 23
2
Merging multiple data sets
Hi,
I am trying to merge data similar to the example data below
> dat0
id var1 var2 var3
2 1 0 1
3 1 0 1
4 0 1 1
5 0 1 1
> dat1
id var4 var5 var6
2 1 0 1
3 1 0 1
6 0 1 1
7 0 1 1
> dat2
id
2006 Sep 22
1
Propensity score and three treatments
Dear All,
I would like to find something ( references, code,..) to implement a
comparison of three
treatments in an observational study using the 'Propensity Score'.
Any help is much appreciated. Thanks!
Giovanni
--
dr. Giovanni Parrinello
Department of Biotecnologies
Medical Statistics Unit
University of Brescia
Viale Europa, 11 25123 Brescia
email: parrinel at med.unibs.it
Phone:
2012 Dec 24
1
How to do it through 1 step?
A data set(dat),has 2 variables: x and a, and 100 rows.
I wanna add 2 variables,and call the new data set dat1:
var1:f = a/median(a)
var2:x_new = x*f
My solution:
dat1<-transform(dat,f = a/median(a),x_new = x*f)
But gets error reply which says that "f" is not exits since dat has no variables called "f".
So I have to do through 2 steps:
2003 Feb 27
1
NA in dummy regression coefficients
Hi
I'm doing a regression analysis with dummy variables and I'm getting NA
for some coefficients. I've inspected residuals, leverage effects and
Cook's distance and it seems ok.
Can someone explains what can cause this problem ?
Thanks
EJ
2001 Feb 16
1
different_languages_problem
Hi,
what to do with this?
thanks in advance
[serge@rex serge]$ wine write.exe
Invoking /opt/wine/bin/wine.bin write.exe ...
For language 'fr' several language ids were found:
fr_FR - 040C; fr_BE - 080C; fr_CA - 0C0C; fr_CH - 100C; fr_LU - 140C;
Instead of using first in the list, suggest to define
your LANG environment variable like this: LANG=fr_FR
Wine exited with a successful status
2001 Feb 16
1
error_2_can't_find_apps
Hello,
I tried lunch something but the anwer was
"can't find apps"
(I used absolute path too)
[serge@rex wineserver-rex]$ wine
/windows/ProgramFiles/Office/winword.exe
Invoking /opt/wine/bin/wine.bin /windows/ProgramFiles/Office/winword.exe
...
Wine failed with return code 2
/usr/bin/wine: line 516: 1046 Compl?t? tail -f $log_name
Deleting /tmp/wine.log.Vv4t6C
2007 Nov 19
4
options
Bonjour tout le monde.
En fait je voudrait savoir si il est possible d''enlever l''une des trois fonctions de la frame(maximize_box, minimise_box, close_box).
On peut retirer les 3 en même temps, mais est-ce que l''on peut juste retirer l''une des trois?
merci
sebastien
http://beusse.liveror.com
_______________________________________________
wxruby-users mailing
2007 Jul 14
2
eac and flac
am a NEW user to flac.installed flac on eac.tried to rip a cd using eac with flac as external compression.tried the 'wav' icontried the 'mp3' iconboth options saves the file as 'wav'thought eac will rip the cd in the 'flac' file format.is this a 2-step procedure?wherein eac to 'wav' and re-ripped on flac frontend?or is there a ripper with flac in it that
2007 Jan 28
1
Dovecot mailing list page down
As I've decided not to manage my own mail server, I'm trying to
unsubscribe from the dovecot list. However, the page at
http://www.dovecot.org/mailinglists.html is down. Does anybody have
the welcome email, so that they could tell me to what address to send
the unsubscribe command to? Thanks in advance.
Dotan Cohen
http://lyricslist.com/lyrics/artist_albums/392/paige_jennifer.html