similar to: Problem with modification of [.factor

Displaying 20 results from an estimated 30000 matches similar to: "Problem with modification of [.factor"

2001 Dec 23
3
R 1.4 on Mandrake Linux 8.1
I installed the new rpm from CRAN for R 1.4 for Mandrake Linux 8.1, after getting blas and libgcc from rpmfind.net. When I do update.packages() the system goes to update grid, lattice, and mgcv. I get compile errors for two of them. Apparently R is looking for gcc 3.0.1 or later but 8.1 uses 2.9x which is required for other Mandrake applications (i.e., I get a dependency error when trying to
2001 Jun 03
1
Difficulty with R CMD INSTALL
I am running Linux Mandrake 7.2 with the following: platform i586-pc-linux-gnu arch i586 os linux-gnu system i586, linux-gnu status major 1 minor 2.3 year 2001 month 04 day 26 language R To build a package I ran R CMD build Hmisc, apparently with success: * checking for file `Hmisc/DESCRIPTION' ... OK * preparing `Hmisc': * cleaning src * checking
2002 Sep 15
1
lattice with print(..., more=) and multiple graphics files
Under platform i586-pc-linux-gnu arch i586 os linux-gnu system i586, linux-gnu status major 1 minor 5.0 year 2002 month 04 day 29 language R (haven't updated to 1.5.1 because it's not available on Mandrake 8.1 which is on my
2003 Mar 06
1
Proper way to document print( ) functions
Frequently we have a print method, say print.myclass, that has a variety of arguments. If in the .Rd file I say \usage{ \method{print}{myclass}(x, myarg) } I get a warning when running R CMD chk: * checking generic/method consistency ... WARNING print: function(x, ...) print.myclass: function(x, myarg) What is the proper way to handle this? Thanks -- Frank E Harrell Jr
2002 May 28
2
logit regression, test among groups
Dear all: My logistic regression model includes one qualitative and one quantitative predictor variable, aes <- glm(p.a ~ spp * log(light), family=binomial(link=logit)), where spp is abundance of 3 species and light is subcanopy light availability varying from 0 1. I want to test differences among levels of the quantitative variable at a value of x other than the current log(light)=0.
2002 Apr 12
5
How to specify search order for require()
In a .First.lib I want to issue two require()s to insure that two other packages are loaded. But I want the package being loaded by .First.lib using library.dynam("mypackage",pkb,lib) to be higher in the search order than the two required packages, because I want to have a couple of functions from the two required packages overridden. What is the best way to do that? Thanks in advance
2002 May 14
2
R CMD check
I am unclear on whether to run R CMD check pgkname as user or as root on Linux. When running as user, after all the latex, html, and man files are created, I get the following error message: Rdconv(): Couldn't open '': Permission denied Has anyone dealt with that message? When I run R CMD check a second time, all latex, html, etc. are recreated which takes quite a while. Is there
2001 Sep 27
1
Making a factor with common levels ...
This is doing my head in. Staying away from R for too long is bad for the health! I have two vectors of character names where there may be repetition and from which I want to form two factors with the same levels but only if there are more than N instances of each name in each vector. I can get the list of common names quite easily, using:
2003 Apr 21
3
Dates in read.spss
I am using read.spss in the foreign package to read an SPSS save file. For date variables I get huge values such as 11489990400. Does anyone know how to convert these values to R POSIXct date objects? Thanks in advance -Frank platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major 1 minor
2002 Aug 04
5
Pseudo R^2 for logit - really naive question
I am using GLM to calculate logit models based on cross-sectional data. I am now down to the hard work of making the results intelligible to very average readers. Is there any way to calculate a psuedo analoque to the R^2 in standard linear regression for use as a purely descriptive statistic of goodness of fit? Most of the readers of my report will be vaguely familiar and more comfortable with
2002 Dec 08
2
Warning: as.numeric reorders factor data
Recently, I was using aggregate() to develop averages by trial for an experiment I was running. Trials were indicated as ordinal numbers for each subject. aggregate() turned trial into factors during the aggregation process. I then wanted to create a scatter plot of subject performance by trial, so I applied as.numeric to the (now) factor variable trial. as.numeric reordered the trial
2003 Jun 12
3
Multiple imputation
Hi all, I'm currently working with a dataset that has quite a few missing values and after some investigation I figured that multiple imputation is probably the best solution to handle the missing data in my case. I found several references to functions in S-Plus that perform multiple imputation (NORM, CAT, MIX, PAN). Does R have corresponding functions? I searched the archives but was not
2002 Apr 29
1
Release of Design library; update of Hmisc library
The Design library has been fully ported to R except for Cox proportional hazards regression modeling (using Therneau's survival package) which will be available in about two weeks. It will take much longer to make all the example code executable, is it currently contains many examples for which data are not provided. Thanks to Xiao Gang Fan <xiao.gang.fan1 at libertysurf.fr> who
2002 Apr 29
1
Release of Design library; update of Hmisc library
The Design library has been fully ported to R except for Cox proportional hazards regression modeling (using Therneau's survival package) which will be available in about two weeks. It will take much longer to make all the example code executable, is it currently contains many examples for which data are not provided. Thanks to Xiao Gang Fan <xiao.gang.fan1 at libertysurf.fr> who
2003 Jun 05
2
ridge regression
Hello R-user I want to compute a multiple regression but I would to include a check for collinearity of the variables. Therefore I would like to use a ridge regression. I tried lm.ridge() but I don't know yet how to get p-values (single Pr() and p of the whole model) out of this model. Can anybody tell me how to get a similar output like the summary(lm(...)) output? Or if there is
2002 Apr 26
4
SAS and R
Hello I am sure this is elementary, but I can't figure it out..... I am using SAS v8.2 and R 1.4.1 on a Windows platform. I have a large (6 megabyte) file in .sd2 format. I want to import it into R. If necessary, I can create a smaller file, as I don't need all the variables that are in this file I downloaded the package foreign. I then tried to use PROC CPORT in SAS to create a
2001 Apr 07
2
A programming puzzler
I am trying to replicate part of the function of the S-Plus terms.inner function. I don't need an entire model terms object but R expressions or character strings containing the innermost variable name given a vector of character strings or expressions. Here are some example inputs that each should result in the string or expression "x": x; x^2; g(x); h(g(x)); h(g(x^3));
2002 Nov 07
4
Preferable contrasts?
Dear all, I'm working with Cox-regression, because data could be censored. But in this particular case not. Now I have a simple example: PRO and PRE are (0,1) coded. The response is not normal distributed. We are interested in a model which could describe interaction. But my results are depending strongly in the choose of the contrast option. It is clear that there is some dependence in
2002 Jul 19
2
Workings of model.frame.default and [.
Related to my earlier question to which I received very helpful replies, when I provide a subsetting method that automatically drops unused levels of a factor variable, I am getting into a bit of trouble using model.frame.default. I know that model.frame.default has its own mechanism for dropping unused levels, but my personal preference is to handle this on a more basic level using [.factor and
2002 Nov 08
1
pdf() and pdflatex
I am having good success in using pdf() to produce pdf graphics files for inclusion in documents processed by pdflatex [I'm using R 1.6.0 on Linux]. I am having one small problem consistently though, which I believe I also had with S-Plus's pdf.graph(): wasted space at the top of the graph which causes pdflatex to put the graph on a later page, when the current page has plenty of space.