Thank you!
Franco
From: David Winsemius [dwinsem...@comcast.net]
Sent: Thursday, September 29, 2011 8:09 AM
To: R. Michael Weylandt
Cc: Mendolia, Franco; r-help@r-project.org
Subject: Re: [R] Multiplying a list of matrices with a vector
On Sep 28, 2011
Hi all!
I have a list of matrices and I want to multiply the ith element of the list
with the ith element of a another vector. That is,
> LL <- list(A=diag(3),B=diag(3),C=diag(3))
> vec <- 1:3
> for(i in 1:3)
+ {
+ LL[[i]] <- LL[[i]]*vec[i]
+ }
> LL
$A
[,1] [,2] [,3]
[1,]100
[
Hello,
I would like to create a group variable that is based on the values of three
variables:
For example,
> dat <- data.frame(A=c(1,1,1,1,1,2,2,2,2,2),
B=c(1,1,1,5,5,5,9,9,9,9),
C=c(1,1,1,1,1,2,2,7,7,7))
> dat
A B C
1 1 1 1
2 1 1 1
3 1 1 1
4
___
From: David Winsemius [dwinsem...@comcast.net]
Sent: Monday, August 30, 2010 10:41 PM
To: David Winsemius
Cc: Mendolia, Franco; r-help@r-project.org
Subject: Re: [R] Q about package Icens: change the color of the shading in plot
function
On Aug 30, 2010, at 11
Hello!
I want to use the Icens package for analyzing interval-censored data. This code
from the manual gives me what I want.
library(Icens)
data(cosmesis)
csub1 <- subset(cosmesis, subset=Trt==0, select=c(L,R))
e1 <- VEM(csub1)
plot(e1)
However, I would like to change the color of the shading f
Thanks for your hint. This works:
form <- formula(paste("Surv( time, event,) ~",paste(covar,
collapse="+"),"+strata(stratum)", sep=" ") )
Franco
From: David Winsemius [dwinsem...@comcast.net]
Sent: Wednesday, A
still need
to construct the formula with the arbitrary number of covariates which then
leads to my original problem.
From: Erik Iverson [er...@ccbr.umn.edu]
Sent: Wednesday, August 11, 2010 12:00 PM
To: Mendolia, Franco
Cc: r-help@r-project.org
Subject: Re
Hello!
I have something like this:
test1 <- data.frame(intx=c(4,3,1,1,2,2,3),
status=c(1,1,1,0,1,1,0),
x1=c(0,2,1,1,1,0,0),
x2=c(1,1,0,0,2,2,0),
sex=c(0,0,0,0,1,1,1))
and I can easily fit a cox mo
8 matches
Mail list logo