Displaying 20 results from an estimated 500 matches similar to: "I need help for creating a "timevar""
2009 Jun 18
1
binding message from R CMD check
When I run R CMD check on the survival package I get one error message that I
have not been able to figure out:
survfitCI: no visible binding for global variable 'n.nevent'
I've examined the code and can't see the problem -- the variable in question
appears several times. Is there as way to find out EXACTLY what line it objects
to?
Terry T
2008 Nov 12
1
QueueLog from AMI
Hi,
How can I pass the following data to te queuelog via ami??
Agent,data.
??
I'm doing this:
Action: QueueLog\r\nQueue: queueprueba\r\nEvent: Login\r\n\r\n
And thath works fine getting the log with the event but I cant find how to
pass the agent and data parameters
Any idea?
Thnks
-------------- next part --------------
An HTML attachment was scrubbed...
2005 Feb 26
1
reshape without timevar argument?
Hi
I have a data.frame with 2 columns. The first column is an ID column.
The other columns are description of the ids. There is more than one
description for each Id.
Want I want to get as a value is a data.frame where each row
corresponds to one ID and has as many columns as different
descriptions.
I have used a very convoluted step, but I'm very convinced there is
an easier way to do
2008 Sep 27
2
reshape "Error in data[, timevar] : incorrect number of dimensions"
I have two waves of a survey given to students at various middle
schools and high schools, with student id numbers for each student. I
am having difficulty reshaping the file from long to wide.
My code is below:
library(foreign)
svy <- read.spss("studsur4.SAV")
svy.wide <- reshape(svy, timevar="WAVE", idvar="id", direction="wide")
2012 Mar 20
2
Reshaping data from long to wide without a "timevar"
Hello All,
I was wondering if it's possible to reshape data from long to wide in R without using a "timevar". I've pasted some sample data below along with some code. The data are sorted by Subject and Drug. I want to transpose the Drug variable into multiple columns in alphabetical order.
My data have a variable called "RowNo" that functions almost like a
2009 Feb 11
1
Table Formatting
Dear R-Users
I have created the following table in R:
Year TACC.SNA1 Catch.SNA1 TACC.SNA2 Catch.SNA2 TACC.SNA3
Catch.SNA3
111 1985-86 9396 18595 1860 530
1486 16727
112 1986-87 3155 12195 9506 7067
4991 2300
113 1987-88 6913 2074 3740
2011 Dec 20
2
Extract BIC for coxph
Dear all,
is there a function similar to extractAIC based on which I can extract the
BIC (Bayesian Information Criterion) of a coxph model?
I found some functions that provide BIC in other packages, but none of them
seems to work with coxph.
Thanks,
Michael
[[alternative HTML version deleted]]
2008 Jan 03
1
help with combining matrix and list into dataframe
Problem#################################################################
I am having a problem combining a matrix and elements of a list into one data
frame.
Data####################################################################
The matrix is ludwig.results and dim of matrix is 213,8.
The list is called symbols and its length is 213.
Following is an example the structure of my matrix
2011 Dec 22
1
ff object in lapply function
Hello. I'm using as.ffdf(mydataframe) to create ffdf objects inside an lapply
loop and returning that. I then use crbind to combine the lapply results
into allData.
So...simplified flow looks like this.
res <- lapply(1:nchunks, function(n)
{
blah blah with nth chunk
mydataframe <- data.frame(blah blah)
dat <-
2006 Dec 10
1
Huge IMAP folder takes forever
Hi!
Just updated to 1.0 rc15, but the problem remains. I think it could be
client-dependent to some extent.
I have only IMAPS access and Maildir. I have one mailbox which contains
some 10,200 mails. That mailbox takes forever (have waited 30 minutes
and then aborted) to open with Thunderbird 1.5.0.7. Other mailboxes
(like dovecot :-), only 6984 mails) opens quickly.
When Thunderbird tries to
2004 Jul 26
5
covariate selection in cox model (counting process)
Hello everyone,
I am searching for a covariate selection procedure in a cox model formulated
as a counting process.
I use intervals, my formula looks like coxph(Surv(start,stop,status)~
x1+x2+...+cluster(id),robust=T) where id is a country code (I study
occurence of civil wars from 1962 to 1997).
I'd like something not based on p-values, since they have several flaws for
this purpose.
I turned
2001 Apr 15
2
data manipulation in R
Dear List:
I have a data manipulation problem that I was unable
to solve in R. I did it in SQL, and it may be that
the solution in R is to do it in SQL, but I wondered
if people could imagine a vector-based solution.
Imagine a list A[i] of observers who observe some set
of events B[j]. Each observer i may observe one or
more events, and each event j may have been observed
by one or more
2006 Oct 29
1
dmapi doesn't work on aix; possible fix included
I'm running samba 3.0.23c on aix 5.3 TL4. I'm using Tivoli HSM 5.3.4.0
on a JFS2 filesystem. Samba compiled fine, and I set "dmapi support =
yes" in smb.conf, but samba wouldn't recognize offline files ("migrated
files" in tsm terminology). After setting a higher log level I think
I've tracked down the problem. The patch is at the bottom of this email.
2006 Apr 03
1
Does logistic regression require the independence of samples?
Dear list:
Thanks a lot for help. I have a question and I could not find clear answers
easily.
When we do logistic regression for one type of events of interest as a
proportion of a broader types of events, does the logistic regression assume
that the number of whole types of events should be independent with the
number of type of interest?
For example, if one type of events and the whole type
2004 Jul 04
2
smooth non cumulative baseline hazard in Cox model
Hi everyone.
There's been several threads on baseline hazard in Cox model but I think
they were all on cumulative baseline hazard,
for instance
http://tolstoy.newcastle.edu.au/R/help/01a/0464.html
http://tolstoy.newcastle.edu.au/R/help/01a/0436.html
"basehaz" in package survival seems to do a cumulative hazard.
extract from the basehaz function:
sfit <- survfit(fit)
H
2005 Aug 14
1
Panel data handling (lags, growth rates)
I have written two functions which do useful things with panel data
a.k.a. longitudinal data, where one unit of observation (a firm or a
person or an animal) is observed on a uniform time grid:
- The first function makes lagged values of variables of your choice.
- The second function makes growth rates w.r.t. q observations ago,
for variables of your choice.
These strike me as
2009 Sep 14
2
problems with reshape
Hello *
I would like to reshape wide the following dataset:
> rl <- read.dta("intermedi/rapporti_lavoro.dta") [c("id_rl","prog","sil_pi","sil_cf","sil_dat_avv")]
> dim(rl)
[1] 12964 5
> object.size(rl)
1194728 bytes
> head(rl)
id_rl prog sil_pi sil_cf sil_dat_avv
1 638 1 04567XXXXXX
2007 May 09
1
Errors with systemfit package and systemfitClassic()
I get the following error message after using the sysfit package's function 'systemfitClassic':
Error in data[[eqnVar]] : subscript out of bounds
When I do this:
MSYS1 <- cbind(Y, Num, F, PO, PD, GO, GD)
MigOLS1 <- systemfitClassic("OLS", F ~ PO + PD + GO + GD, eqnVar = "Num", timeVar = "Y", data = MSYS1)
and I get this error message:
Error in
2006 Jan 22
6
Making a markov transition matrix
Folks,
I am holding a dataset where firms are observed for a fixed (and
small) set of years. The data is in "long" format - one record for one
firm for one point in time. A state variable is observed (a factor).
I wish to make a markov transition matrix about the time-series
evolution of that state variable. The code below does this. But it's
hardcoded to the specific years that I
2008 Feb 10
2
reshape
Dear colleagues,
I'd like to reshape a datafame in a long format to a wide format, but
I do not quite get what I want. Here is an example of the data I've
have (dat):
sp <- c("a", "a", "a", "a", "b", "b", "b", "c", "d", "d", "d", "d")
tr <- c("A",