similar to: update.formula simplify = FALSE

Displaying 20 results from an estimated 4000 matches similar to: "update.formula simplify = FALSE"

2005 Jul 19
1
ROC curve with survival data
Hi everyone, I am doing 5 years mortality predictive index score with survival analysis using a Cox proportional hazard model where I have a continous predictive variable and a right censored response which is the mortality, and the individuals were followed a maximum of 7 years. I'd like to asses the discrimination ability of survival analysis Cox model by computing a ROC curve and area
2006 Mar 24
1
cox model for haplotypes
Hi, Anybody knows a function that can fit haplotype data to a Cox model. I've been searching it in the web without succeed. I use "haplo.stats" package, but unfortunatelly it's not possible to analyse survival data, amb I right?. Thanks in advance. Isaac Subirana (isubirana@imim.es) [[alternative HTML version deleted]]
2006 Mar 30
1
SPSS dictionary information data bases
Hi, Does anybody know how to obtain the same information as the SPSS command "DISPLAY DICTIONARY". I know the read.spss function in the package foreign, but it doesn't give either the missing values defined by the user under SPSS or the format variables (for example if they are dates or not). Thanks in advance. Isaac Subirana (isubirana@imim.es) [[alternative HTML
2006 May 09
1
variable names from SPSS data base
Hi R-users, When I import a data base from SPSS with some variable with a name of more than 8 characters (which is possible in version 12 or later of SPSS software) I find that the name of these variables have been truncated to 8 characters. I used the 'read.spss' function from the 'foreign' package. Is there a function in R that solves this 'length variable names'
2007 Mar 09
0
Right truncation data
Hi, Does anybody know how to perform a Cox model analysis for right truncated data? All my data is right truncated, since I only have patients who entered in a hospital for a particular desease, and I would like to modelate the age at hospital entrance as the response variable. Thanks in advance. Isaac Subirana. isubirana@imim.es -------- La informació continguda en aquest missatge i
2007 Aug 15
3
Formula in lm inside lapply
I am trying to run separate regressions for different groups of observations using the lapply function. It works fine when I write the formula inside the lm() function. But I would like to pass formulae into lm(), so I can do multiple models more easily. I got an error message when I tried to do that. Here is my sample code: #generating data x1 <- rnorm(100,1) x2 <- rnorm(100,1) y <-
2012 May 02
2
Función para devolver nombre del área de trabajo en uso
¡Hola! ¿Alguien sabe si existe una función en R que devuelve el nombre del área de trabajo (workspace) en uso si éste ha sido guardado anteriormente? Con getwd() R me devuelve la carpeta de trabajo, pero si en ésta tengo varios áreas de trabajo guardados, p.e. a.RData y b.RData, ¿cómo podría saber en cuál estoy trabajando si por un despiste no me acordara cuál he abierto anteriormente (sin tener
2006 Apr 18
0
Jeffries-Matusita distance
I've calculated as follows: matusita<-function(f1,f2,lw,up){ fmatu<-function(x) ( sqrt(f1(x)) - sqrt(f2(x)) )^2 sqrt (integrate( fmatu, lower=lw, upper=up, subdivisions=1000000)$value) } Josué Almansa Unitat de Recerca en Serveis Sanitaris Institut Municipal d'Investigació Mèdica, IMIM c/ Doctor Aiguader, 80 08003 Barcelona e-mail: jalmansa@imim.es
2011 Dec 13
0
snpStats imputed SNP probabilities
Hi, Does anybody know how to obtain the imputed SNP genotype probabilities from the snpStats package? I am interested in using an imputation method implemented in R to be further used in a simulation study context. I have found the snpStats package that seems to contain suitable functions to do so. As far as I could find out from the package vignette examples and its help, it gives the
2007 Apr 25
0
attributable risk
Hi everybody, Does anyone know a function to compute the attributable risk of a factor in a logistic regression or a proportional hazard cox model (both with confounding variables)? I need also obtain the confidence interval. Thanks in advance. Isaac Subirana. -------- La informació continguda en aquest missatge i en qualsevol fitxer adjunt és confidencial, privada i d'ús exclusiu
2014 Dec 21
0
loadNamespace and versionChecking and the otherpackage::otherfun syntax
This is an enquiry not so much about what the code for loadNamespace does, but rather about the intent and design of loadNamespace, and how it interacts with the `::` function, which seems to me to follow a slightly different philosophy. It is not an urgent question - the issue that started me wondering has been resolved another way - but I would like to complete my understanding of this aspect
2004 Nov 29
2
Building latest version of package
Hi I have a package which was built using R 1.9.1 and everything worked fine. I recently upgraded to R 2.0.1 and tried to re-install my package - and I got: Error in library(mypackage) : 'mypackage' is not a valid package -- installed < 2.0.0? So I tried rebuilding it using my new version of R: R CMD BUILD --binary mypackage hhc: not found cp: cannot stat `mypackage.chm': No
2009 Dec 09
0
What is the development cycle where there are code in tests/ for package development?
I see 'library(stats)' at the beginning of R-2.10.0/src/library/stats/tests/nls.R. I'm wondering if I am developing my own package 'mypackage' whether I should put 'library(mypackage)' in a .R file in mypackage/tests/? If I do, then it seems awkward to me, because to use 'library(mypackage)', I have to first get 'mypackage' installed. So the
2009 Oct 26
2
R CMD check: Error in .C
Function/file names are hypothetical. Say I have written myfunction.R, which calls myfunction.c via .C("myfunction", ...). I've compiled successfully myfunction.c via R CMD SHLIB myfunction.c in the terminal. Then, in the R console: dyn.load("myfunction.so") source("myfunction.R") test <- myfunction() # works fine So everything is in order, myfunction works
2015 Oct 31
1
Example input data with example output using relative pathway in vignette of R package?
I'm putting together an R package. I would like to show example code in the vignette, where example data files (included in the package) are used to generate an (example) output file. I read about using example data in Hadley Wickham's post ( http://r-pkgs.had.co.nz/data.html), and believe I should keep my example data as raw data, as it must be parsed to generate the output. So, I
2011 Aug 02
2
R CMD check problem
Dear friends, I am building an R package called *mypackage*. I followed every possible steps (to my understanding) for the same. I got following problem while doing *R CMD check mypackage*. * installing *source* package 'mypackage' ... ** libs cygwin warning: MS-DOS style path detected: C:/PROGRA~1/R/R-213~1.0/etc/i386/Makeconf Preferred POSIX equivalent is:
2005 Jul 04
1
installing packages and libraries
When I run the following: cd \Rpkgs rcmd install mypackage -l library I get a message that it cannot find quadprog which is a library that mypackage depends on. Error: package 'quadprog' could not be loaded I previously used C:\Program Files\R\rw2011\library as my library for CRAN packages and did not have a problem but now that I use C:\Program Files\R\library this problem
2006 Mar 31
1
Fortran and C entry point problem.
Dear All, I have seen a number of e mails on this topic but I have not seen a general solution to date. I have Fortran and C source codes and they have been compiled successfully using: R CMD build mypackage And R CMD install mypackage Without error messages. I then open R and tests out two functions and get: > pgl(0.2,1,2,3,4) Error in
2006 Mar 31
1
Fortran and C entry point problem.
Dear All, I have seen a number of e mails on this topic but I have not seen a general solution to date. I have Fortran and C source codes and they have been compiled successfully using: R CMD build mypackage And R CMD install mypackage Without error messages. I then open R and tests out two functions and get: > pgl(0.2,1,2,3,4) Error in
2011 Apr 21
1
Package check issue: Rprofile.site is not used
Dear R-users, I am having some issues with a package I am working on (using R 2.12.1 in a Linux environment) and would like to have your opinions/advises. My package - let's call it mypackage for the purpose of this email - passes all checks of R CMD check, except for the following failure message: Error : .onLoad failed in loadNamespace() for 'mypackage', details: call: