Displaying 20 results from an estimated 3000 matches similar to: "subscripting a terms object"
2012 Jan 05
1
delete.response leaves response in attribute dataClasses
I posted this one as an R bug
(https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14767), but
Prof. Ripley says I'm premature, and I should raise the question here.
Here's the behavior I assert is a bug:
The output from delete.response on a terms object alters the formula
by removing the dependent variable. It removes the response from the
"variables" attribute and it changes
2019 Oct 04
0
Error in [.terms
Martin,
? There are a couple of issues with [.terms that have bitten my survival code.? At the
useR conference I promised you a detailed (readable) explanation, and have been lax in
getting it to you. The error was first pointed out in a bugzilla note from 2016, by the
way.? The current survival code works around these.
Consider the following formula:
<<testform>>=
2011 Apr 19
1
How to Extract Information from SIMEX Output
Below is a SIMEX object that was generated with the "simex" function from the
"simex" package applied to a logistic regression fit. From this mountain of
information I would like to extract all of the values summarized in this
line:
.. ..$ variance.jackknife: num [1:5, 1:4] 1.684 1.144 0.85 0.624 0.519 ...
Can someone suggest how to go about doing this? I can extract the
2004 May 11
2
How to import file from excle?
Hi R-help
I have some question.
First I have data in Excle ,then I would like to fit distribution
from this data, how to import this data from excle? What's command?
Thaks for first answer
Second
I learn R program from The Basics of S and S-plus book because it's basic,
and then when I use command is attact(geyser) [follow from book] but I can't
.
Because it's command only S
2009 Apr 26
1
help with plotting results of lda
Hi,
I've performed an lda and obtained a classification table for some of my
data:
> efa.dfa<-lda(groups~.,efa.scores.8,CV=T)
> str(efa.dfa)
List of 5
$ class : Factor w/ 2 levels "1","2": 1 2 1 2 1 1 2 2 1 2 ...
$ posterior: num [1:160, 1:2] 0.99083 0.00852 0.93983 0.23186 0.85931 ...
..- attr(*, "dimnames")=List of 2
.. ..$ : chr [1:160]
2009 Sep 14
2
Function "Varcov" in Design (Ver. 2.2-0) package
Hi,
I'm running into an error message for the "anova"-function I never got
before with the Design (Version 2.2-0) package.
There seems to be a missing function "Varcov", please check my
function calls (it's in german but I think you get the error):
> library(Design) ## attaching Design package and dependent packages
Lade n?tiges Paket: Hmisc ## loading
2012 Jul 31
1
kernlab kpca predict
Hi!
The kernlab function kpca() mentions that new observations can be transformed by using predict. Theres also an example in the documentation, but as you can see i am getting an error there (As i do with my own data). I'm not sure whats wrong at the moment. I haven't any predict functions written by myself in the workspace either. I've tested it with using the matrix version and the
2018 Mar 07
3
Names of variables needed in newdata for predict.glm
I would like to extract the names, modes [numeric/factor] and levels
of variables needed in a data frame supplied as newdata= argument to
predict.glm()
Here is a small example illustrating my troubles; what I want from
(both of) the glm objects is the vector c("x","f","Y") and an
indication that f is a factor:
library( splines )
dd <- data.frame( D =
2012 Jun 11
1
saving sublist lda object with save.image()
Greetings R experts,
I'm having some difficulty recovering lda objects that I've saved within sublists using the save.image() function. I am running a script that exports a variety of different information as a list, included within that list is an lda object. I then take that list and create a list of that with all the different replications I've run. Unfortunately I've been
2018 Mar 08
0
Names of variables needed in newdata for predict.glm
Hi,
Some try:
> names(mi$xlevels)
[1] "f"
> all.vars(mi$formula)
[1] "D" "x" "f" "Y"
> names(mx$xlevels)
[1] "f"
> all.vars(mx$formula)
[1] "D" "x" "f"
When offset is indicated out of the formula, it does not work...
Marc
Le 07/03/2018 ? 06:20, Bendix Carstensen a ?crit?:
> I would like
2006 Jan 11
1
Strange behaviour of load
Dear All,
simetimes when I load an Rdata I get this message
#######
Code:
load('bladder1.RData')
Carico il pacchetto richiesto: rpart ( Bad traslastion: Load required package-...)
Carico il pacchetto richiesto: MASS
Carico il pacchetto richiesto: mlbench
Carico il pacchetto richiesto: survival
Carico il pacchetto richiesto: splines
Carico il pacchetto richiesto: 'survival'
2019 Apr 05
6
all.equal failure
This arose in testing [.terms and has me confused.
data(esoph)?? # use a standard data set
t0x <- terms(model.frame( ~ tobgp, data=esoph))
t1 <-? terms(model.frame(ncases ~ agegp + tobgp, data=esoph))
t1x <- (delete.response(t1))[-1]
> all.equal(t0x, t1x)
[1] TRUE
# the above is wrong, because they actually are not the same
> all.equal(attr(t0x, 'dataClasses'),
2008 Aug 26
3
Dovecot - T-Bird - RETR command failed
I have recently installed new untangle firewalls ( untangle.com) in
Bridge mode at two office locations. Both offices collect mail from a
Fedora 9, postfix,dovecot server at location #1. Since the install of
the untangles i have been plagued by Thunderbird Errors while trying to
POP email.
The error says "RETR" command failed. If the user logs into the webmail
(Squirrelmail) on the
2011 Sep 22
4
R CMD check file issues
This problem is likely to be specific to Windows, and particularly Win7.
After a successful build of a package (R CMD build addendum), I immediately
run an R CMD check for the same package.
Not always, but _very_ often, I get the following error:
C:\Users\nisabbe\Documents\@Doctoraat\R>R CMD check addendum
Loading required package: tcltk
Loading Tcl/Tk interface ... done
Loading
2010 May 05
1
Unexpected call to "require"
Colleagues
I am executing a length script in R (20K lines). At one point, it returns:
> Loading required package: tcltk
> Loading Tcl/Tk interface ... done
> Loading required package: Hmisc
> Loading required package: survival
> Loading required package: stats
> Loading required package: graphics
> Loading required package: splines
> Attaching package: 'Hmisc'
2012 Jan 25
0
Last Call: Who says this is not a bug in delete.response()?
On January 5, I posted here concerning this issue
(https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14767), and I
have not heard any answers from people who think this is not a bug,
or a simple accident in the delete.response function.
The output from delete.response on a terms object alters the formula
by removing the dependent variable. It removes the response from the
"variables"
2012 Oct 01
2
Hmisc describe error
Describe fails for me with a message similar to what was an issue in 2008 and got fixed according to posts.
R version 2.15.0 (2012-03-30)
Copyright (C) 2012 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i386-pc-mingw32/i386 (32-bit)
# output truncated
> options(chmhelp = FALSE, help_type = "text")
> .help.ESS <- help
>
2018 Mar 31
1
Names of variables needed in newdata for predict.glm
all.vars works fine, EXCEPT, it give a bit too much.
I only want the regression variables, but in the following example I also get "k" the variable holding the chosen knots. Any machinery to find only "real" regression variables?
cheers, Bendix
library( splines )
y <- rnorm(100)
x <- rnorm(100)
k <- -1:1
ml <- lm( y ~ bs(x,knots=k) )
mg <- glm( y ~
2007 Mar 03
2
Segmentation fault on bin/R --version in R-devel
Hello!
I have tried to build and install latest version of R, but I am not able
to perform the install, due to seg. fault. I did the following after SVN
checkout and wget for recommendeds:
./configure --prefix=/usr/local/R-devel
make
make install
...
...
tcut text html latex example
tobin text html latex example
2008 Sep 29
1
describe function in package Hmisc and function format.dates in chron (PR#13087)
Full_Name: Kem Phillips
Version: 2.7.1 (2008-06-23)
OS: Windows Xp professional
Submission from: (NULL) (98.221.200.108)
The Hmisc function describe fails, giving the error message:
Error in formatDateTime(dd, atx, !timeUsed) :
could not find function "format.dates"
Loading the chron package, where function dates apparently resides, does not
fix the problem. Note