Displaying 20 results from an estimated 1100 matches similar to: "Rpart question - labeling nodes with something not in x$frame"
2003 Jul 15
1
Tree question
I was under the impression that the tree method (e.g. as implemented in
rpart) was insensitive to monotonic transformations of the dependent
variable. e.g. Breiman Olshen et al. Classification and Regression
Trees state "In a standard data structure [a tree] is invariant under
all monotone transformations of individual ordered varaibles" (p. 57)
However, I get very different results
2004 Mar 03
7
Location of polr function
Hello
I am running R 1.8.1 on a Windows platform
I am attempting to fit an ordinal logistic regression model, using the
polr function, as described in Venables and Ripley. But when I try
model4 <- polr(ypsxcat~committed + as.factor(sex)
+ as.factor(drugusey) + anycsw + as.factor(sex)*committed
+ as.factor(sex)*as.factor(drugusey)+as.factor(sex)*anycsw, data =
duhray)
I get a message
2003 Dec 19
1
Question re labels in r-part (continuation of a thread from a while back)
Hello again
I have modeled a tree using rpart, with the DV being a log
transformation of the variable I am really interested in (I transformed
the DV due to extreme skewness). By default, text.rpart labels the
nodes with the value of yval, which in this case is not what I want; I'd
like the labels to be on the original metric, but label in text.rpart
requires a "column name of
2003 Aug 15
3
How to reinstall rpart?
After entering ?library(rpart)?, I tried to plot an existing rpart tree, and
got this error message: Error: couldn't find function "plot.rpart".
However, ??plot.rpart? does bring up the help for the function. The same
things occur for text.rpart, although print(my.tree) does work.
So, I tried to re-install rpart using Packages | Install from CRAN, but
then I get this
2003 Jul 31
6
how to make a plot without any axis-labeling
Hi.
I got a problem, perhaps someone can help me.......
every time, when I want to plot data, both axis are labeled by default like
data[1,]
and
data[2,]
how can I make a plot without ANY labeling?
does anyone know that?
thanks for helping
Michael
[[alternative HTML version deleted]]
2006 Jul 20
5
How can I make has_many prevent a delete that would lead to orphans?
e.g.
class Asset < ActiveRecord::Base
validates_presence_of :asset_number, :make, :model, :location,
:name, :serial_number
validates_numericality_of :asset_number
validates_uniqueness_of :asset_number
belongs_to :user
belongs_to :location
belongs_to :asset_type, :foreign_key => ''type_id''
end
class Location < ActiveRecord::Base
validates_presence_of :name
2006 Jul 25
4
Sorting by two fields
I have a list of TimeSheet objects from an ealier AR query, which I
can sort by the full name of the user like so:
@time_sheet_entries.sort! { |a,b| a.user.full_name <=> b.user.full_name }
I can sort by the started time like so:
@time_sheet_entries.sort! { |a,b| a.start_time <=> b.start_time }
My question is how do I do a sort so that the list is sorted primarily
by user.full_name
2010 Jun 03
3
[LLVMdev] Generating Floating point constants
Le 3 juin 2010 à 16:00, Martin Guy a écrit :
> [off list]
>
>> 0.8f get converted in 0x3FE99999A0000000 by LLVM
>
> single precision
>
>> http://babbage.cs.qc.edu/IEEE-754/Decimal.html gives:
>>
>> 0x3FE999999999999A instead and this value cannot be read back by "llc"...
>
> double precision
>
> M
Well
For float 0.8 :
2005 Jan 29
4
format question
how can I get a float to always print two decimal places?
Thanks,
Jamie
2006 Jul 21
5
Reports in Rails
Hi,
In my rails application I want to include a reporting mechanism that will
allow the users of application to view statistics of various operations
graphically.
Does rails provide inbuilt reporting capabilities? what are different
appraoches I can follow to achieve reporting in rails?
On googling I found following as some of the options,
1.Gruff Graphs for Ruby
2.SVG
3. using Apache FOP.
2003 Jun 08
6
Basic question on applying a function to each row of a dataframe
Hi,
I have a function foo(x,y) and a dataframe, DF, comprised of two vectors, x
& w, as follows :
x w
1 1 1
2 2 1
3 3 1
4 4 1
etc
I would like to apply the function foo to each 'pair' within DF e.g
foo(1,1), foo(2,1), foo(3,1) etc
I have tried
>apply(DF,foo)
>apply(DF[,],foo)
>apply(DF[DF$x,DF$w],foo)
However, none of the above worked. Can anyone help ?
2006 Jul 21
3
How can I create OrderItems that go in a Order?
I suspect my problem is similar to having an order and wanting to have
order items as part of the order, so I''ll explain the problem in those
more familiar terms and then explain what if anything makes my actual
situation different at the end.
In an Order lets say you have: shipping_address and a shipped bool.
OrderItem has quantity and name
So Order has_many :OrderItems, and OrderItem
2003 Jul 21
0
Changing the labels on a regression tree (repeat post - with added clarity)
Hello
I posted a very similar question last week, but the responses I
received indicated that my post was unclear....
I have a regression tree created in rpart with
tr.logypsx <- rpart(log(YPSX + 1)
~AGE+drugfact+sexfact+as.numeric(OBSX) +WINDLE + EABUSED + PABAU +
positive.par + control.par + lenient.par, xval = 10, method = 'anova',
cp = 0.0001, data = duhray2)
and then
2001 Apr 17
2
Stupid question: where is the Preferences box?
Good day!
I am GUI-challenged, and proud of it, but I would like a bit of help.
When I start netscape (picked from an Earthlink CD) it raises a message
box that says (this is picked from --debugmsg +text and folded for
mailing convenience):
trace:text:DrawTextExW L"Error: temporary directory E: does not exist.
Please enter a new directory in the preferences box.", 99 ,
[(0,0),(264,0)]
2009 Oct 07
1
Log entries with truncated service names
Hi,
Situation:
I'm seeing lots (~500k per day) of log entries like:
smbd[13939]: itlab-pc06 (::ffff:10.51.51.103) couldn't find service it261
In this case, the last character of the request is truncated - it should be
it2610
I'm seeing the same/similar issue to
http://lists.samba.org/archive/samba/2009-March/147277.html
I've dismissed this over the last few weeks as a minor
2003 Jun 13
1
Factorial function in R?
Is there a native factorial function in R [my searches have been
fruitless], or do I need to use gamma() function?
*********************************************************************
Dr Peter Caley
CSIRO Entomology
GPO Box 1700, Canberra,
ACT 2601
Email: peter.caley@csiro.au
Ph: +61 (0)2 6246 4076 Fax: +61 (0)2 6246 4000
*********************************************************************
2003 Jun 13
1
Problem with Rcmd SHLIB
Dear R-helpers,
i am trying to make a shared library from a Fortran subroutine, and i therefore used (after reading the documentation):
Rcmd SHLIB forfile.f #(R1.70, Win2000)
And the error is:
" 'perl' is not recognized as an internal or external command,operable program or batch file."
So i went ahead and tried to install Perl (from the suggested website in
2003 Jun 25
2
Pairs with different colours
Does anybody know how to make pairs graphics with dots of different colours depending on the value of a categorical variable ?
Thanks,
Arnaud
*************************
Arnaud DOWKIW
Department of Primary Industries
J. Bjelke-Petersen Research Station
KINGAROY, QLD 4610
Australia
T : + 61 7 41 600 700
T : + 61 7 41 600 728 (direct)
F : + 61 7 41 600 760
**************************
2003 Jul 02
2
user mannual
Dear Sir
I have successfuly downloaded R package.
Kindly let me know where i will get _/*user mannual*/_ for the same.
awaiting a prompt reply
with regards
Pankaj
@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@
Pankaj Kumar
Research Scholar
Climatology & Hydrometeorology Divison
Indian Institute Of Tropical Meteorology
Homi Bhabha Road, Pune-411008
India
Phone No. +91-20-5893600 Ext. 361
2003 Jul 08
2
exporting help
i need step by step directions on how to export a text file into the r
file