Displaying 20 results from an estimated 100 matches similar to: "need help with stat functions(like adaboost, random forests and glm)"
2005 Aug 16
1
predict nbinomial glm
Dear R-helpers,
let us assume, that I have the following dataset:
a <- rnbinom(200, 1, 0.5)
b <- (1:200)
c <- (30:229)
d <- rep(c("q", "r", "s", "t"), rep(50,4))
data_frame <- data.frame(a,b,c,d)
In a first step I run a glm.nb (full code is given at the end of this mail) and
want to predict my response variable a.
In a second step, I would
2008 Apr 27
1
parallel max, min, and median of dataframe columns
Hello, all,
I have a dataframe of three rows and umpteen columns. I want to show the
maximum, minimum, and median with a vertical line and a central dot (I'd
use a boxplot, but with only three data points, that's overkill; I can't
just use points, because of overlap and some of the other data plotted on
the graph).
This works:
> boxplot(data_frame,
2006 Jan 24
1
No scientific notation in format
Hi
I have a data.frame with the following numbers (first column are month
numbers)
07,0,0,0,0.315444056314174,0,0,0,12.5827462764176,0.079194498691732,
0.0280828101707015,0,0.0695808222378877
08,0,0,105600,0.393061160316545,0,0,0,8.95551253153947,0.0880023174276553,
0.285714285714286,0,0.0669139911789158
09,0,0,0,0,12.5,0,0,13.5135887094281,0.0557531529154668,0,0,
0.0487526139182026
2012 Jan 01
1
empty files created with trellis xyplot jpeg device
New years greetings.
I have been setting up a function to generate multiple jpeg charts. When
the calls are issued at the interactive console, the jpeg files are
generated without an issue. When I try to issue the same calls from a
function, some chart files are empty. It appears to only be related to
trellis charts. Any help to troubleshoot this is appreciated.
Regards,
-mike
R version
2002 Mar 02
1
accessing factor levels from C
Hi,
I am trying to get information about factors from a C-program. As I see,
the factors are basically integers with attribute ,,levels''. But
unfortunately I am not been able to read the levels information. I am
using:
SEXP variable, levels;
...
variable = VECTOR_ELT( data_frame, j);
switch( TYPEOF( variable)) {
case INTSXP:
if( isFactor( VECTOR_ELT( data_frame,
2017 Nov 08
2
Ggplot error
Hello,
I've an error recently.
ggplot(data = mtcars, aes(x= wt, y= mpg)) + geom_line()
Error: Found object is not a stat.
> sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.3 LTS
Matrix products: default
BLAS: /usr/lib/openblas-base/libblas.so.3
LAPACK: /usr/lib/libopenblasp-r0.2.18.so
locale:
[1] LC_CTYPE=tr_TR.UTF-8
2017 Nov 08
1
Ggplot error
I get the same result as Eric? withR version 3.4.2 (2017-09-28)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 17.04
It looks like you have "tidyverse" loaded so I tried it with just ggplot2 loaded and with tidyverse loaded.?
On Wednesday, November 8, 2017, 4:16:14 AM EST, Eric Berger <ericjberger at gmail.com> wrote:
I was not able to reproduce this
2017 Nov 08
0
Ggplot error
Thanks,
I think, I found the problem. It seems to related locale setting.
If I start with 'LANG=C R' everything's good.
--
Zeki ?atav
zekicatav.com
On Nov 8, 2017 1:56 PM, "John Kane" <jrkrideau at yahoo.ca> wrote:
I get the same result as Eric with
R version 3.4.2 (2017-09-28)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 17.04
It looks like you
2017 Nov 08
0
Ggplot error
I was not able to reproduce this problem. I tried two environments
1. Ubuntu 14.04.5 LTS, R version 3.4.2 (same R version as yours)
2. Windows 10, same R version
On Wed, Nov 8, 2017 at 9:50 AM, Zeki ?ATAV <zcatav at gmail.com> wrote:
> Hello,
> I've an error recently.
>
> ggplot(data = mtcars, aes(x= wt, y= mpg)) + geom_line()
> Error: Found object is not a stat.
>
2010 Aug 17
3
Weird differing results when using the Wilcoxon-test
Hi,
I became a little bit confused when working with the Wilcoxon test in R.
As far as I understood, there are mainly two versions:
1) wilcox.test{stats}, which is the default and an approximation, especially,
when ties are involved
2) wilcox_test{coin}, which does calculate the distribution _exactly_ even,
with ties.
I have the following scenario:
#---BeginCode---
# big example
size = 60
2009 Jul 02
3
Testing for membership in an array of strings
As an R beginner, I feel brain dead today as I can not find the answer
to a relatively simple question.
Given a array of string values, for example lets say "mary", "bob",
"danny", "sue", and "jane".
I am trying to determine how to perform a logical test to determine if
a variable is an exact match for one of the string values in the array
2001 Dec 19
2
R strings from C
Hi,
I am trying to study R internal behaviour. So long, I have not
succeeded to access the value of R strings from C.
I use:
void salvesta_tabel(
SEXP data_frame,
SEXP file
)
{
printf( "nimi %d\n", (R_CHAR)( file));
}
and from the R side:
salvesta.tabel <-
function (x, file = "") {
.Call( "salvesta_tabel", x, file)
}
When calling
2007 Jun 05
4
Refactor all factors in a data frame
Hi all,
Assume I have a data frame with numerical and factor variables that I
got through merging various other data frames and subsetting the
resulting data frame afterwards. The number levels of the factors seem
to be the same as in the original data frames, probably because subset()
calls [.factor without drop = TRUE (that's what I gather from scanning
the mailing lists).
I wonder if
2017 Sep 04
1
Dataframe Manipulation
Hello Ulrik,
Can you please explain this code means how and what this code is doing
because I'm not able to understand it, if you can explain it i can use it
in future by doing some Lil bit manipulation.
Thanks
data_help <-
data_help %>%
mutate(Purchase_ID = 1:n()) %>%
group_by(Purchase_ID) %>%
do(split_items(.))
cat_help %>% gather("Foo",
2017 Aug 31
0
Dataframe Manipulation
Hi Hemant,
the solution is really quite similar, and the logic is identical:
library(readr)
library(dplyr)
library(stringr)
library(tidyr)
data_help <- read_csv("data_help.csv")
cat_help <- read_csv("cat_help.csv")
# Helper function to split the Items and create a data_frame
split_items <- function(items){
x <- items$Items_purchased_on_Receipts %>%
2005 Jun 06
0
adaboost more two classes
Dear R-Helper,
I want to know, is there any function/package can handle adaboost more
two classes?
I know packages gbm and boost, but there are only for 2 classes (correct
me if I mistake).
Regards, Muhammad Subianto
2002 Jun 23
2
AdaBoost for R
I'm going to implement AdaBoost algorithm in R. Just wanted to ensure
that there is no implementation of any boosting algorithm in R... don't
want
to reinvent the wheel...
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or
2008 Aug 15
1
exporting adaBoost model
Dear all,
I'm using adaBoost from the ada package to build a classification
model. After training the model in R I'd like to use it in a
Python application. Is it possible to export the model in some
way to make translating into python easier?
Any help would be greatly appreciated. Thanks.
Bob
2009 Apr 27
1
question about adaboost.
Hello,
I would like to know how to obtain the misclassification error when performing a boosting analisis with ADABAG package?
With:
> prop.table(Tesis.boostcv$confusion)
I obtain the confusion matrix, but not the overall missclassification error.
Thanks in advance,
BSc. Cecilia Lezama
Facultad de Ciencias - UDELAR
Montevideo - Uruguay.
[[alternative HTML version deleted]]
2009 Aug 26
0
Doubt about adaboost
Hello,
I performed a boosting analisis with adabag package to obtain a classification tree with the following set of commands:
Tesis.boost <- adaboost.M1(Captura~., data=Tesis2, mfinal=2)
> arb<-Tesis.boost$tree[[1]]
> post(arb, file ="")
> post(arb, file ="",title= "Arbol 1")
I would like to know the meanning of the numbers that appeared in the