Displaying 20 results from an estimated 10000 matches similar to: "Infinite loop"
2006 Jun 18
1
Post Stratification
Dear WizaRds,
having met some of you in person in Vienna, I think even more fondly
of this community and hope to continue on this route. It was great
talking with you and learning from you. Thank you. I am trying to work
through an artificial example in post stratification. This is my dataset:
library(survey)
age <- data.frame(id=1:8, stratum=rep(
2015 Feb 04
2
Interpretación de coeficientes en un cox proportional hazards con variable strata
Buenas.
Abajo pongo la salida de un modelo de cox , dónde he estratificado por
una variable de país (Countryb) y por otra (Q6). Además hay interacción
entre la variable mobilityPDurG2 (es una variable 0,1, y 0 es la
categoría de referencia) país.
La categoría de referencia para país es "united kingdom".
Mi duda surge si quiero calcular el hazard ratio para los que tienen un
1
2011 Feb 03
3
coxph fails to survfit
I have a model with quant vars only and the error message does not make sense:
(mod1 <- coxph(Surv(time=strt,time2=stp,event=(resp==1))~ +incpost+I(amt/1e5)+rate+strata(termfac),
subset=dt<"2010-08-30", data=inc,method="efron"))
Call:
coxph(formula = Surv(time = strt, time2 = stp, event = (resp ==
1)) ~ +incpost + I(amt/1e+05) + rate + strata(termfac),
2004 Apr 21
1
Boot package
Dear mailing list,
I tried to run the example for the conditional bootstap written in the help file
of censboot. I got the following result:
STRATIFIED CONDITIONAL BOOTSTRAP FOR CENSORED DATA
Call:
censboot(data = aml, statistic = aml.fun, R = 499, F.surv = aml.s1,
G.surv = aml.s2, strata = aml$group, sim = "cond")
Bootstrap Statistics :
original bias std. error
t1*
2010 Nov 09
5
Question regarding to replace <NA>
Dear r-users,
Basically, I have a data as follows,
> data
S s1 s2 s3 s4 s5 prob obs num.strata
1 NNNNN N N N N N 0.0000108 32 <NA>
2 NNNNY N N N N Y 0.0005292 16 <NA>
3 NNNYN N N N Y N 0.0005292 24 <NA>
4 NNNYY N N N Y Y 0.0259308 8 1
....
I want to replace <NA> by 0, when I tried the following
2010 Apr 04
2
"mantel.haenszel.test for trend in S-plus doesn't work i R"
Dear R'ers,
When I used S-plus i wrote a small program for a Mantel-Haenszel test
for trend (I think it worked). Unfortunately I can't get it working in
R.
It appears as if my use of 'el' is the problem but I can't sort it out.
Error in apply(array, c(, 2, 3), function(el) el * 1:s) :
argument is missing, with no default
Further down in the program I use 'el'
2009 Jun 18
3
R function found in two packages !
Hi,
Is there a mean to automatically choose one version of the 'rbind' function ? By default, R chose the 'rbind' from {base}, i would lke to use the one from {IRanges}...
Is it possible to set that using 'par' ?
> ?rbind
Help on topic 'rbind' was found in the following packages:
Package Library
IRanges
2009 Feb 25
1
Unexpected side effect of the ":::" operator on the value of isGeneric
Hi,
when running the following on a fresh R,
library("IRanges")
annotation
showMethods("annotation")
Biobase:::annotation
showMethods("annotation")
I get (see the "^^^^^" marked output at the bottom):
> library("IRanges")
Carico il pacchetto richiesto: 'IRanges'
The following object(s) are masked from package:base :
2009 Apr 28
1
Random Sample with Unique function
Dear R-users
I have a dataset of 243 lines with replicate information for 20 different individuals (ID).
I would like to randomly sample this dataset 100 times with a selection of unique IDs in each sample.
First to create a random sample I have;
cc<-read.table(blah.blah.blah)
names(cc)
[1] "CALL" "CONTEXT" "ORDER" "ID"
2010 Oct 21
2
How to access values in s4 method
Hi
How to access the values in the output that is an object of S4 type. I tried
to access using subset ( [ ] ) but it is not allowed.
Any clue??
Thanks
-- Fahim
#My code is as follows:
require(IRanges);
query <- IRanges(c(1, 4, 9), c(5, 7, 10))
subject <- IRanges(c(2, 2, 10), c(2, 3, 12))
findOverlaps(query, subject)
Output of find overlap function is:
------------------
1>
2003 Dec 17
1
repeated measures aov problem
Hi all,
I have a strange problem and rigth now I can't figure out a
solution.
Trying to calculate an ANOVA with one between subject factor (group)
and one within (hemisphere). My dependent variable is source
localization (data). My N = 25.
My data.frame looks like this:
> ML.dist.stack
subj group hemisphere data
1 1 tin left 0.7460840
2 2 tin left
2010 Mar 12
6
Randomly sampling subsets of dataframe variable
Fellow R users,
I am stumped on what would seem to be something fairly simple.
I have a dataframe that has a variable named 'WEEK' that takes
the numbers 1:26 (26 week time-period) with each number repeated
five times consecutively (once for each weekday, Monday through
Friday). Ex. 111112222233333.....2626262626. I would like to
randomly extract two weekdays per five day week for
2012 Dec 17
1
Code works standalone, yet same code fails when part of package
Hi
I'm missing something here but I cannot figure out what. What I can see is that the same code works when I load it via source(...) yet fails when I execute it after loading the package I have built (which includes the code.
Below is a transcript of my R session. First I load the code from a file, using source(). Then I execute it fine. Then I remove the function object, I load the
2017 Dec 29
2
Facing problem in installing the package named "methyAnalysis"
Thank you Michael Dewey.
Can you please send me the email id for Bioconductor.
regards
Pijush
On Fri, Dec 29, 2017 at 5:20 PM, Michael Dewey <lists at dewey.myzen.co.uk>
wrote:
> Dear Pijush
>
> You might do better to ask on the Bioconductor list as IRanges does not
> seem to be on CRAN so I deduce it is a Bioconductor package too.
>
> Michael
>
>
> On
2017 Dec 29
2
Facing problem in installing the package named "methyAnalysis"
Dear Sir,
I have been using R for a long time. But recently I have faced a problem
when installing the Bioconductor package named "methyAnalysis". Firstly it
was require to update my older R (R version 3.4.3 (2017-11-30)) in to newer
version. That time I have also updated the RStudio software.
After that when I have tried to install the package named "methyAnalysis".
It
2017 Dec 29
0
Facing problem in installing the package named "methyAnalysis"
Dear Pijush
You might do better to ask on the Bioconductor list as IRanges does not
seem to be on CRAN so I deduce it is a Bioconductor package too.
Michael
On 29/12/2017 07:29, Pijush Das wrote:
> Dear Sir,
>
>
>
>
> I have been using R for a long time. But recently I have faced a problem
> when installing the Bioconductor package named "methyAnalysis".
2010 Mar 23
3
Converting date format
R community:
Hello, I would to like to convert a character date variable from %m/%d/%Y to %m/%d/%y. Any advice would be greatly appreciated. I have tried functions for changing the formatting and removing the unnecessary digits without success.
Mike
2015 Jan 13
2
R CMD build looking for texi2dvi in the wrong place (R-devel)
R CMD build fails with recent R-devel because it is looking for texi2dvi in /usr/local/bin, but on this system, MacTex has installed it in /usr/bin.
$ R CMD build IRanges
* checking for file 'IRanges/DESCRIPTION' ... OK
* preparing 'IRanges':
* checking DESCRIPTION meta-information ... OK
* cleaning src
* installing the package to build vignettes
* creating vignettes ... ERROR
2008 Sep 11
1
Complex sampling survey _ Use of survey package
Hello everybody
I don't understand how I'm supposed to use svydesign caracteristics to explain to R that my sampling design is the following one
Data base = tab1 here are the five first rows of the database (nrow = 11792)
num
esp
Quarters
Totcat
Totshp
Totgt
Tbtpos
fpc1
Totanim
Id_An
10
2045
G
2013 Dec 07
1
combine glmnet and coxph (and survfit) with strata()
Dear All,
I want to generate survival curve with cox model but I want to estimate the
coefficients using glmnet. However, I also want to include a strata() term
in the model. Could anyone please tell me how to have this strata() effect
in the model in glmnet? I tried converting a formula with strata() to a
design matrix and feeding to glmnet, but glmnet just treats the strata()
term with one