Displaying 20 results from an estimated 600 matches similar to: "Merging value labels into indicator variable."
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 Feb 23
5
Selecting First Incidence from Longitudinal Data
I have a longitudinal competing risk data of the form:
ID COMPL SEX HEREDITY
1 0 1 2
1 0 1 2
1 3 1 2
2 0 0 1
2 1 0 1
2 2 0 1
2 2 0 1
3 0 0 1
3 0 0 1
3 0 0 1
3 0 0 1
3 2 0 1
4 0 1 2
4 0 1
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
2009 Mar 08
1
re shaping a data frame with multiple IDs
Dear R-experts,
I have the following "long" data frame:
ID <-
2001 Nov 28
2
Value lables, variable lables
I'm looking for an analogy to SPSS and "variable lable" and "value
lable" in R. I have a copy of S+4.0 and can't find any info in their
docs, and don't find it in R-intro either.
In SPSS, for each variable, there is a name like
VAR001
and a variable lable (a longer descriptive string) like
Respondent ID
and for many of the values of other variables there are
2006 Jun 06
2
SPSS variable lables import
Hi,
I try to get the variable labels of a SPSS data file into R but don't
find this mentioned in the help file for foreign. Is there another way
to get them ?
BTW: An SPSS variable name is like: VAR001, whereas the variable label
might be 'Identification no.'
Thanks in advance,
F. Thomas
--
..........................................
Dr. Frank Thomas
FTR Internet Research
93110
2004 May 04
2
Superposing data on boxplot
Hi folks,
I have a vaiable Y and an associated factor Z at several (13)
levels.
boxplot(Y~Z)
produces a nice array of boxplots, one for each level of Z,
and each duly labaelled with its level of Z.
I would like to superpose on each boxplot the actual data
points which it represents, i.e. do something conceptually
(though not in real R) expressed as
points(Y~Z)
or
points(Z,Y)
It can
2014 May 23
2
R múltiple archivos de salida
R múltiple
Estoy pensando en un problema que tendré que solucionar pero aún no
comencé a escribirlo, por lo tanto no hay código en R como para
compartir, sin embargo no tengo idea de cómo realizarlo desde R.
El planteo es el siguiente:
Los datos son en una cantidad necesaria para que el procesamiento
estadístico demore (minutos, horas).
Supongamos dos variables (serían más), la A y la B,
2003 Feb 17
1
lda on curves
I'm working on a rather interesting consulting problem with a client. A
number of physical variables are measured on a number of cricket bowlers
in the performance of a delivery. An example variable might be a
directional component of angular momentum for a particular joint
measured at a large number (101) of equally spaced timepoints.
Each bowler generates a (fairly smooth) curve for
2014 May 24
2
R múltiple archivos de salida
Estimado Jorge Velez
Lo que usted dice tiene algo a mi pregunta, pero yo la formule mal. Voy
a preguntar nuevamente con un ejemplo que tiene errores, pero es más
próximo a lo que estoy pensando.
Modelo (con error pero no importa)
modelo <- muerte = edad + sexo + 1!causa
Causa: infarto, infarto, súbita, muerte en tiroteo
El modelo lineal, sobrevida, etc. corre sin inconvenientes (aunque
2007 Dec 14
3
Preview Message Before Saving?
Hi all,
I''m sure this is really simple, but I can''t seem to figure it out. I
want to let users preview their messages before submitting. Something in
the form of:
def new
@post = Post.new
end
def preview
#preview message text here
#@post = Post.new(params[:post]) <--?
end
def create
#save message on user''s confirmation
...
@post.save
end
Have any
2010 May 21
3
vaiable in lm
Hi,
if I know the colnames x and y in the following example, I can easily to do lm.
tmp <- data.frame(x=c(1,1.2),y=c(1,2))
lm(y ~ x, data=tmp)
when the colnames are variable, what should I do? for example
colnames(tmp)[1] <- paste("aa",1,sep="_")
lm(y ~ paste("aa",1,sep="_"), data = tmp)
it gives me error.
[[alternative HTML version
2011 Aug 03
1
TE410P hardware problems
TE410P card down.
I have three (3) TE410P in one machine running asterisk with SS7.
My problems started last week when one of my cards started switching to E1
every time after reboot. I set the following in dahdi.conf and that solve
the problem.
/etc/modprobe.d/
options wct4xxp t1e1override=0x00
Now all 4 ports on that card is down with Red Alarm. I tried rebooting the
machine and
2001 Feb 21
1
Specification of factors in tapply
After some fiddling around with the tapply command, I discovered that the
factors (the INDEX argument) given to tapply must be specified in
fastest-cycling first order.
The following code shows how I discovered my error: (R version 1.2.1)
-o-o-o-o-o-
x <- as.data.frame(list(data=c(-9,0,3,1,-9,1,0,-9,0,3,1,-9,1,0),
subj=c(rep(1,7),rep(2,7)),
2007 Jun 28
4
compare 2 vectors
Dear all,
I would like to take out the values from one vector that are equal to the values in another vector.
Example:
a <- c(1,2,3,4,5,6,7,8,9)
b <- c(3,10,20,5,6)
b_noRepeats = c(10,20)
So I would like to have the vector b without the same values as vector a.
Kind regards,
João Fadista
[[alternative HTML version deleted]]
2016 Aug 05
2
Extra copies of objects in environments when using $ operator?
My understanding is that R will not make copies of lists if there is
only one reference to the object. However, I've encountered a case
where R does make copies, even though (I think) there should be only
one reference to the object. I hope that someone could shed some light
on why this is happening.
I'll start with a simple example. Below, x is a list with one element,
and changing that
2007 Aug 31
3
data frame row manipulation
Hello,
struggling with the very basic needs... :( any help appreciated.
#using the package doBY
#who drinks how much beer per day and therefor cannot calculate rowise
maxvals
evaluation=data.frame(date=c(1,2,3,4,5,6,7,8,9),
name=c("Michael","Steve","Bob",
"Michael","Steve","Bob","Michael","Steve","Bob"),
2013 Jan 11
4
count combined occurrences of categories
Dear all,
i would like to count the number of times where I have combined occurrences of the categories of 2 variables.
For instance, in the dataframe below, i would like to know how many times each author (au1, au2, au3 represent the first, second, third author) is associated with each of the category of the variable 'nam'. The position of the author does not matter.
nam <-
2003 Sep 10
2
Need your help-SOS
Hello,
I am a newbie in R project and trying to call prcomp(x) of R function
using (D)COM server communicate with R in ASP, and encountering the error
"Runtime error -2147221493(8004000b). Automation Error, Object is static,
operation not allowed."
Source code is shown as below:
<%
Set StatConn=Server.CreateObject("StatConnectorSrv.StatConnector")