similar to: Package DAAG

Displaying 20 results from an estimated 2000 matches similar to: "Package DAAG"

2009 Oct 08
3
I can not install DAAG package . help
I use R on my Ubuntu 9.04 laptop, which was installed by "aptitude install" way Now i'm learning a book of R which needs "MASS" and "DAAG" installed. So i followed the instructions: >install.packages("MASS") >library("MASS") MASS works fine. But DAAG doesn't. Anyone who could help would be appreciated a lot ! Below are my error
2009 Oct 08
3
I can not install DAAG package . help
I use R on my Ubuntu 9.04 laptop, which was installed by "aptitude install" way Now i'm learning a book of R which needs "MASS" and "DAAG" installed. So i followed the instructions: >install.packages("MASS") >library("MASS") MASS works fine. But DAAG doesn't. Anyone who could help would be appreciated a lot ! Below are my error
2012 Feb 29
1
How can I avoid the warning messages when calling DAAG package?
Dear R users, I'm a newbie for R and want to ask some basic questions. So, after I open the R software, I typed library(DAAG). Then, I get massive warning messages as shown below. Why does it happen? Also, here are few specific questions regarding each message. 1) Loading required package: MASS -> Does this mean that the MASS package is not included in DAAG? 2) Attaching package:
2007 Nov 13
3
cronbach's alpha
hie 1...i'm trying to carryout a relibility testusing cronbach's alpha what fuctin do i use. 2.. this is more of a statistical question.if the alpha value for all the variables is negative what does it mean. and if the alpha value is negative for all tyha variables but is greater than 0.7 for some sections of the variables what does that mean thanks in advance
2007 May 07
2
computing logrank statistic/test
hie how do you compute the logrank test using R what commands do you use my data looks something like just an example treatmentgrp strata censoringTime survivalTime censoring act.surv.time [1,] 2 2 42.89005 1847.3358 1 42.89005 [2,] 1 1 74.40379 440.3467 1 74.40379 [3,] 2 2
2007 May 16
2
creating different strata
hie l would like to create about ten strata l have tried using sample(c(1,2),1,replace=TRUE) but all l get is a vector of 1 and 2 if i change it to sample(c(1,10),1,replace=TRUE) it gives me a vector of 1 and 10 how do l go about it --------------------------------- [[alternative HTML version deleted]]
2007 Nov 12
2
specifying decimal places
hie how do I specify the number of decuimal places for my calulations thanks __________________________________________________ [[alternative HTML version deleted]]
2007 May 07
4
creating a new column
hie l would like to create a 6th column "actual surv time" from the following data the condition being if censoringTime>survivaltime then actual survtime =survival time else actual survtime =censoring time the code l used to create the data is s=2 while(s!=0){ n=20 m<-matrix(nrow=n,ncol=4)
2007 Oct 29
3
using survfit
hie when i use plot.survfit to plot more than one graph why I only see the last graph how do i see the other graphs.for example n=20 n1=n/2 n2=n/4 a11=4;a12=4 ;a21=4 ;a22=4 t1<-array(1,c(n1)) t2<-array(2,c(n1)) treatgrp=matrix(c(t1,t2))
2007 May 17
2
controling the size of vectors in a matrix
hie R users l have the following matrix n=20 m<-matrix(nrow=n,ncol=4) colnames(m)=c("treatmentgrp","strata","survivalTime") for(i in 1:n) m[i,]<-c(sample(c(1,2),1,replace=TRUE),sample(c(1:2),1,replace=TRUE),rexp(1,0.07),rexp(1,0.02))
2007 May 14
1
logrank
hie is it possible to get the code for the logrank test l just need the chisquared value. thanks --------------------------------- [[alternative HTML version deleted]]
2007 Oct 18
1
programming question
hie i'm tryimg to generate two survival data using the following code (I know its ugly ) but it seems to repeat two of the variables can any one tell me whats the porblem. n=20 n1=n/2 n2=n/4 a11=1 ;a12=1.4 ;a21=16 ;a22=a12 * a21 t1<-array(1,c(n1)) t2<-array(2,c(n1)) treatgrp=matrix(c(t1,t2))
2008 May 06
4
categorical data analysis
hie all i am trying to carry out a categorical data analysis but my problem is that when in i use the chi squared test some of my expected values are less than 5. is there a test that can handle this situation. the data is not a 2*2 table. its more from the social sciences where you have from strongly agree to strongly disagree. i know i can collapse vthe tables but there is a loss of
2007 May 01
7
logrank test
how do l programme the logrank test. l am trying to compare 2 survival curves --------------------------------- [[alternative HTML version deleted]]
2007 May 21
0
Is this a bug in cv.lm(DAAG) ?
Dear R-list, I'm not sure what I've found about a function in DAAG package is a bug. When I was using cv.lm(DAAG) , I found there might be something wrong with it. The problem is that we can't use it to deal with a linear model with more than one predictor variable. But the usage documentation hasn't informed us about this. The code illustrates my discovery: > library(DAAG)
2007 May 12
0
There might be something wrong with cv.lm(DAAG)
Hi, everyone When I was using cv.lm(DAAG) , I found there might be something wrong with it. The problem is that we can't use it to deal with a linear model with more than one predictor variable. But the usage documentation hasn't informed us about this. You can find it by excuting the following code: xx=matrix(rnorm(20*3),ncol=3) bb=c(1,2,0) yy=xx%*%bb+rnorm(20,0,10)
2013 Jun 04
1
How to write a loop in R to select multiple regression model and validate it ?
I would like to run a loop in R. I have never done this before, so I would be very grateful for your help ! 1. I have a sample set: 25 objects. I would like to draw 1 object from it and use it as a test set for my future external validation. The remaining 24 objects I would like to use as a training set (to select a model). I would like to repeat this process until all 25 objects are used as a
2012 Jan 24
1
Failure to get compactPDF to compact a pdf file
I am failing to get compactPDF to make any change to a pdf file that, a/c to the message from the CRAN upload site, can be very substantially compacted. Any ideas what may be wrong? I have also tried recreating the pdf file. I also tried R CMD build --resave-data --compact-vignettes DAAG The data files compact alright (but I get the 'significantly better compression' warning message
2005 Feb 27
1
subsetting data set dimenion problem
(See DAAG book, p. 173, ex. 3) I'm a new user of R, and I'm following the DAAG text. I want to create a subset of the races2000 data frame, but get errors because of a mismatch of values in some columns: > library(DAAG) > attach(races2000) > hills2000 <- races2000[races2000$type == 'hill'] Error in as.matrix.data.frame(x) : dim<- : dims [product 770] do not
2006 Sep 11
2
problems in installing packages with R version 2.4.0 alpha (2006-09-05 r39134)
I just downloaded the windows version R version 2.4.0 alpha (2006-09-05 r39134) 1. When I downloaded the packages, the following two were not found. > utils:::menuInstallPkgs() --- Please select a CRAN mirror for use in this session --- dependency ''fCalendar'' is not available dependency ''SparseM'' is not available I am not sure which other packages