Displaying 20 results from an estimated 10000 matches similar to: "Subscript out of bounds when using datadist() from Design library"
2007 Jun 11
8
R vs. Splus in Pharma/Devices Industry
Following up to some extent on Friday's discussion regarding the
'validation' of R, could I ask the list group's opinion on possible
advantages of R over Splus from a pharma/devices perspective? I wish to
exclude the obvious price difference, which doesn’t seem to carry as much
weight as I would have thought. Besides, I have noticed many former Splus
users gravitating towards R,
2007 Mar 01
2
Using R for devices trial
I would like to use R for submissions to FDA/CDRH (the medical device
company I work for currently uses only SAS). Previous postings to the list
regarding R and 21 CFR 11 compliance have been very helpful. However,
reluctance to using open source software for statistical analyses and
reporting remains high here at my company. Has anyone used R for an
official submission to FDA/CDRH? It would
2009 Jul 09
2
datadist() in Design library
Hi I got an error message using datadist() from Design package:
> library(Design,T)
> dd <- datadist(beta.final)
> options(datadist="dd")
> lrm(Disease ~ gsct+apcct+rarct, x=TRUE, y=TRUE)
Error in eval(expr, envir, enclos) : object "Disease" not found
All variables inclduing response variable "Disease" are in the data frame
2007 Oct 31
1
datadist options error, DESIGN library
Hello,
using the Design library, and the following command (from the Harrell's book, example at Ch.20):
dd <- datadist(rx, age, wt, pf, pf.coded, heart, map, hg, sz, sg, ap, bm)
options(datadist=='dd')
I get the following error:
Error in datadist == "dd" : comparison (1) possible only for atomic data or list
What does it means?
thank you,
giulia
2007 Aug 27
2
validate (package Design): error message "subscript out of bounds"
Dear R users
I use Windows XP, R2.5.1 (I have read the posting guide, I have
contacted the package maintainer first, it is not homework).
In a research project on renal cell carcinoma we want to compute
Harrell's c index, with optimism correction, for a multivariate
Cox regression and also for some univariate Cox models.
For some of these univariate models I have encountered an error
2008 Apr 17
1
Error in Design package: dataset not found for options(datadist)
Hi,
Design isn't strictly an R base package, but maybe someone can explain
the following.
When lrm is called within a function, it can't find the dataset dd:
> library(Design)
> age <- rnorm(30, 50, 10)
> cholesterol <- rnorm(30, 200, 25)
> ch <- cut2(cholesterol, g=5, levels.mean=TRUE)
> fit <- function(ch, age)
+ {
+ d <- data.frame(ch, age)
+
2011 Apr 12
1
Datadist error
Dear all,
I have performed a simple logistic regression using the lrm function from
the Design library. Now I want to plot the summary, or make a nomogram. I
keep getting a datadist error: options(datadist= m.full ) not created with
datadist.
I have tried to specify datadist beforhand (although I don't know why it
should be done):
ddist<-datadist(d) ##where d is my dataset
2008 Mar 18
0
Trouble fitting models with nonNULL datadist in Design Library
Having trouble with datadist in the Design library. When I set the
datadist option, all of the fitting functions give error messages
similar to "Error in exists(x, envir, mode, inherits) : invalid first
argument". Code below was run in R version 2.5.0 under windows, but get
similar results with R version 6.2, except with additional problem that
it will not fit model with
2007 Jul 08
2
Making Gehan-Breslow test for Survival data
Hi all,
The survivals functions can be tested by the Log-rank test and others, for
example the Gehan-Breslow. The graham breslow work with the alpha values.
But I don't know how is the Gehan-Breslow test with R. Somebody know a
type function?.. or other suggestions? Any help will be really
appreciated
Jos? Bustos
Marine Biologist
Master Apllied Stat Program
University of Concepci?n
2008 May 29
2
Troubles plotting lrm output in Design Library
Dear R-helpers,
I'm having a problem in using plot.design in Design Library. Tho
following example code produce the error:
> n <- 1000 # define sample size
> set.seed(17) # so can reproduce the results
> age <- rnorm(n, 50, 10)
> blood.pressure <- rnorm(n, 120, 15)
> cholesterol <- rnorm(n, 200, 25)
> sex <-
2004 Dec 15
2
using Hmisc and Design library
Hi, I encountered a weird problem when using the
Design and Hmisc problem. I have 2 data frame called
"a" and "b", both have 3 columns: "time", "status" and
"scores", a sample of the data frame is like:
data frame "a":
time status scores
1 21 1 99.61
2 38 0 101.11
3 51 0 100.62
4 48 0 87.52
5 78 0
2007 Mar 09
6
R and clinical studies
Does anyone know if for clinical studies the FDA would accept
statistical analyses performed with R ?
Delphine Fontaine
2007 Jun 12
5
R Book Advice Needed
I am new to using R and would appreciate some advice on
which books to start with to get up to speed on using R.
My Background:
1-C# programmer.
2-Programmed directly using IMSL (Now Visual Numerics).
3- Used in past SPSS and Statistica.
I put together a list but would like to pick the "best of"
and avoid redundancy.
Any suggestions on these books would be helpful (i.e. too much
2009 Apr 29
1
Error with Design.Function(fit)
Hi all,
I'm reposting this with a more appropriate subject.
Do I need to define limits as the error message seems to suggest? If so, how? The error message, my code, the output and the first few lines of my data are all below.
Thank you!
"Error in Getlim(at, allow.null = TRUE, need.all = TRUE) :
variable dmodel.df does not have limits defined in fit or with datadist"
My code:
2007 Jun 08
6
"R is not a validated software package.."
Dear All,
discussing with a statistician of a pharmaceutical company I received
this answer about the statistical package that I have planned to use:
As R is not a validated software package, we would like to ask if it
would rather be possible for you to use SAS, SPSS or another approved
statistical software system.
Could someone suggest me a 'polite' answer?
TIA
Giovanni
--
dr.
2006 Apr 11
1
cph() in Design package
Hi there, I encountered a weird problem using cph()
with Design package:
I have 2 datasets, say "dat1" and "dat2", both data
frames with 3 columns "time","status" and "scores",
all numeric
If I run the following:
dd<-datadist(dat1)
options(datadist='dd')
dd
time status scores
Low:effect 37.0 0 -6.018
2007 Oct 02
1
Design package: plot summary
Hi everybody,
I am a new user of R, design package.
I am trying to plot the estimated hazard ratio's of my cox regression
model with the confidence intervals. But I keep getting the
message:Error in `contrasts<-`(`*tmp*`, value = "contr.treatment") :
contrasts can be applied only to factors with 2 or more levels
I have dichotomous, categorical as well as continuous
2009 Apr 14
1
Function call error in cph/survest (package Design)
Dear UseR,
I do not know if this a problem with me, my data or cph/survest in package
design. The example below works with a standard data set, but not with my
data, but I cannot locate the problem.
Note that I am using an older package of survival to avoid a problem with
the newly renamed function in survival meeting Design.
Dieter
# First, check standard example to make sure
library(Design)
2008 Apr 03
1
Design package lrm summary and factors
Hello, I have question regarding the lrm function and estimating the odds
ratio between different levels of a factored variable.
The following code example illustrates the problem I am having. I have a
data set with an outcome variable (0,1) and an input variable (A,B,C). I
would like to estimate the effect of C vs B, but when I perform the summary
I only get A vs B and A vs C, even though I
2007 Sep 27
1
R: anova.Design
Dear All:
I tried to replicate a case study described by Prof. Harrell in Chapter 7 of
his Regression Modeling Strategies book, but failed on using anova.Design to
reproduce his table 7.1, Following is the code:
rm(list=ls())
library(Hmisc)
library(Design)
getHdata(counties)
counties$older <- counties$age6574 + counties$age75
label(counties$older) <- '% age >= 65, 1990'