Displaying 20 results from an estimated 300 matches similar to: "What's data() for?"
2006 Nov 24
1
How to find AUC in SVM (kernlab package)
Dear all,
I was wondering if someone can help me. I am learning SVM for
classification in my research with kernlab package. I want to know about
classification performance using Area Under Curve (AUC). I know ROCR
package can do this job but I found all example in ROCR package have
include prediction, for example, ROCR.hiv {ROCR}. My problem is how to
produce prediction in SVM and to find
2005 Mar 18
1
How to show which variables include in plot of classification tree
Dear all
For my research, I am learning classification now.
I was trying some example about classification tree pakages, such as
tree and rpart, for instance,
in Pima.te dataset have 8 variables (include class=type):
library(rpart)
library(datasets)
pima.rpart <- rpart(type ~ npreg+glu+bp+skin+bmi+ped+age,data=Pima.te,
method='class')
plot(pima.rpart, uniform=TRUE)
text(pima.rpart)
2004 Jul 19
3
why won't rq draw lines?
I've been trying to draw quantile linear regression lines across a scatterplot of my data using
attach(forrq)
plot(PREGNANT,DAY8,xlab="pregnant EPDS",ylab="postnatal EPDS",cex=.5)
taus <- c(.05,.1,.25,.75,.9,.95)
xx <- seq(min(PREGNANT),max(PREGNANT),100)
for(tau in taus){
f <- coef(rq(DAY8~PREGNANT,tau=tau))
yy <-
2009 Oct 27
1
"ipredknn" - How may I find values?
Hi everybody!
I want to find a closer neighbourins observation. This is my code:
##########################
library(klaR)
library(ipred)
library(mlbench)
data(PimaIndiansDiabetes2)
dane=na.omit(PimaIndiansDiabetes2)[,c(2,5,9)]
dane[,2]=log(dane[,2])
dane[,1:2]=scale(dane[,1:2])
zbior.uczacy=sample(1:nrow(dane),nrow(dane)/2,F)
2005 Jun 02
3
How to change all name of variables
Dear R-helpers,
First I apologize if my question is quite simple
I have a large datasets which more 100 variables.
For a research I need to change all name of variables with add one or
more letters on each variables.
For example,
> data(Pima.tr)
> Pima.tr[1:5,]
npreg glu bp skin bmi ped age type
1 5 86 68 28 30.2 0.364 24 No
2 7 195 70 33 25.1 0.163 55 Yes
3 5
2010 Mar 09
1
create picture (k -the nearest neighbours)
Hi
I want to create a nice picture about my result of k -the nearest neighbours
algorithm. Here is my easy code:
#################################
library(klaR)
library(ipred)
library(mlbench)
data(PimaIndiansDiabetes2)
dane=na.omit(PimaIndiansDiabetes2)[,c(2,5,9)]
dane[,2]=log(dane[,2])
dane[,1:2]=scale(dane[,1:2])
zbior.uczacy=sample(1:nrow(dane),nrow(dane)/2,F)
2009 Aug 18
4
Transpose a dataset
Hi Everyone,
I have a dataset like this
mean sd 0% 25% 50%
75% 100% n
BODY TEMPERATURE 36.41099 0.4015699 35.1 36.22222 36.5
36.66667 37.1 89
DIASTOLIC BLOOD PRESSURE 73.60079 9.4656186 50.0 67.00000 73.0
80.00000 95.0 253
HEIGHT 171.94000 9.2011670 153.5 166.50000 173.0
176.25000 190.0
2008 Dec 23
2
solaris install
Get the following error on Sun Solaris 10, Sparc (Ultra-5)
./tools/wineinstall
Wine Installer v1.0
./tools/wineinstall: !: not found
./tools/wineinstall: : cannot execute
./tools/wineinstallgrep: RE error 41: No remembered search string.
./tools/wineinstall: test: ] missing
: Name: not found
./tools/wineinstall: wine: not found
Running configure...
./tools/wineinstall: !: not found
We need to
2010 Jun 08
2
problem with if else statement
Dear colleagues,
What did I not understand ?
->my intention
I want to create a new variable:
In plain language:
If someone is taking anithypertensive treatment (med.hyper==1)
table(med.hyper)
med.hyper
0 1
472 97
I want to subtract 5 mmHg (rr.dia.2m-5) from the measured diastolic
blood pressure (rr.dia.2m)
if not treated - the value of the measured diastolic blood pressure
should
2009 Dec 01
1
An R vs. SAS Discrepancy: How do I determine which is correct?
I was messing around with some data in R and SAS (the reason is
unimportant) fitting a multiple linear regression and got a
curious discrepancy. The data set is too big to post, but if
someone wants it, I can send it.
So, here are the (partial) results:
From R:
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 61.11434 1.48065 41.275 < 2e-16 ***
sexWomen
2008 Jun 06
5
request: a class having max frequency
Dear R users
I have a very basic question. I tried but could not find the required result. using
dat <- pima
f <- table(dat[,9])
> f
0 1
500 268
i want to find that class say "0" having maximum frequency i.e 500. I used
>which.max(f)
which provide
0
1
How can i get only the "0". Thanks and
best regards
Muhammad Azam
Ph.D. Student
Department of
2010 Jul 09
1
Appropriate tests for logistic regression with a continuous predictor variable and Bernoulli response variable
I have a data with binary response variable, repcnd (pregnant or not) and one predictor continuous variable, svl (body size) as shown below. I did Hosmer-Lemeshow test as a goodness of fit (as suggested by a kind “R-helper” previously). To test whether the predictor (svl, or body size) has significant effect on predicting whether or not a female snake is pregnant, I used the differences between
2007 Aug 20
1
Ask for functions to obtain partial R-square (squared partial correlation coefficients)
The partial R-square (or coefficient of partial determination, or
squared partial correlation coefficients) measures the marginal
contribution of one explanatory variable when all others are already
included in multiple linear regression model.
The following link has very clear explanations on partial and
semi-partial correlation:
http://www.psy.jhu.edu/~ashelton/courses/stats315/week2.pdf
In
2002 Jan 11
2
I'm stumped
I just installed 302p1 on a client's machine (I run it on all of
mine) and something is definetly wrong, can't figure out what.
ssh localhost
ssh_exchange_identification: Connection closed by remote host
stock config files except
ssh allows X11 forwarding
any suggestions?
Michael at Insulin-Pumpers.org
2004 Aug 06
1
Limiting stream bandwidth
I am trying to limit the bandwidth per stream so that I can stream 2 mp3 connections from my box. I have 256 upload speed. I am using icecast 0.3 and ices 2. I made the changed listed below, restarted everything but it still seems to be streaming at max bandwith. Is there anything, besides moving to ogg vorbis -- it will happen when I have time to write the script to convert the 1000s of files
2003 Aug 21
3
Diamond graphs
I apologise for starting a new thread, but we had a mail problem and I
don't have the original message to refer to.
Someone mentioned the new "Diamond Graphs" invented at Johns Hopkins.
I haven't see the August 2003 issue of The American Statistician yet,
but I _have_ read the press release.
The press release is a bit of a stunner. I quote:
"Who would have thought we
2010 Jun 04
1
subsetting a dataframe
Hi there,
> a<-data.frame(c(1,2,2,5,9,9),c("A","B","C","D","E","F"))
> names(a)<-c("x1","x2")
> max(table(a$x1))
[1] 2
>
The above shows the max count for x1 is 2, which is correct. But we can't tell
there are 2 groups that meet this criteria: 2,2 and 9,9.
I then want to extract the
2005 Oct 13
2
Re: mySQL command line within rails - access denied? [solved]
--- Alex Young <alex-qV/boFbD8Meu8LGVeLuP/g@public.gmane.org> wrote:
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
> Have you
2004 Mar 11
0
(fwd from Bob.Jacobs@dot.pima.gov) Daemon Errors
----- Forwarded message from Bob Jacobs <Bob.Jacobs@dot.pima.gov> -----
From: Bob Jacobs <Bob.Jacobs@dot.pima.gov>
Subject: Daemon Errors
Date: Thu, 11 Mar 2004 15:58:07 -0700
To: "'samba-csadmin@samba.org'" <samba-csadmin@samba.org>
X-Mailer: Internet Mail Service (5.5.2653.19)
X-Spam-Status: No, hits=-0.9 required=3.2 tests=BAYES_30 autolearn=ham
2004 Jul 30
2
samba server onto a Windows 2000 server
How do I install any version of samba onto a Windows 2000 server?
Larry