Re: [R] vcovHC and arima() output

2013-03-31 Thread Achim Zeileis
On Sat, 30 Mar 2013, N. Janz wrote: Dear all, how can I use vcovHC() to get robust/corrected standard errors from an arima() output? I'm not sure whether it is feasible to apply HC corrections to ML estimates of ARIMA models. It's not clear to me whether these would really be robust

[R] Creating new instances from original ones

2013-03-31 Thread Nicolás Sánchez
I have a question about data mining. I have a dataset of 70 instances with 14 features that belong to 4 classes. As the number of each class is not enough to obtain a good accuracy using some classifiers( svm, rna, knn) I need to oversampling the number of instances of each class. I have heard

Re: [R] Creating new instances from original ones

2013-03-31 Thread Prof. Dr. Matthias Kohl
see function SMOTE in package DMwR hth Matthias On 31.03.2013 10:46, Nicolás Sánchez wrote: I have a question about data mining. I have a dataset of 70 instances with 14 features that belong to 4 classes. As the number of each class is not enough to obtain a good accuracy using some

Re: [R] Creating new instances from original ones

2013-03-31 Thread Nicolás Sánchez
Thanks for the answer, but I think this is not suitable for me, because as it appears in the example of SMOTE function, this methods is applicable having only two classes ( common/rare, yes/no, disease/no disease). However, in my data, I have four classes. If I am wrong, please, tell me. Thanks,

Re: [R] special character encoding problem

2013-03-31 Thread Duncan Murdoch
On 13-03-30 5:07 PM, Huidong TIAN wrote: Hi, I have a question about special character: when I create a data frame including some special characters, like 'ø', it displayed as 'U+00F8'. I understand that it's one encoding code for 'ø'. but I want to display the letter as 'ø' on my screen.

[R] Standard error of normalmixEM fit?

2013-03-31 Thread Stat Tistician
I fitted a mixture denstiy of two gaussians two my data. I now want to calculated the standard errors of the estimates via the boot.se command of the mixtools package. My question is now, if the output is correct? It seems a bit odd to me, so is this correct what I am doing and can I rely on the

[R] Skewness of fitted mixture not correct?

2013-03-31 Thread Stat Tistician
I fitted a gaussian mixture to my financial data. The data can be found here: http://uploadeasy.net/upload/32xzq.rar I look at the density with plot(density(dat),col=red,lwd=2) this has a skew of library(e1071) skewness(dat) -0.1284311 Now, I fit a gaussian mixture according to:

[R] Plotting histogram of RT data

2013-03-31 Thread Jacob Fake
Hey there, I'm relatively new to R, and am currently working my way through some basic tutorials. I have a large data set that I've been able to import into the program. I'm using a script in which x=readdir (the directory). I am trying to create a histogram of the data in the 17th column, which

[R] How to represent certain values in a file as we want?

2013-03-31 Thread Jonsson
I have a raster file(1440*720 rows) contains values of 1 ,2 , and 3. when I plot the file , I got a map of three colors but I do not know which is which. How can I put those colors as as I want : 1=red 2=blue 3=green code: pvm - file(C:\\User_sm-das.bin,rb) cor1- readBin(pvm, numeric(),

Re: [R] Plotting histogram of RT data

2013-03-31 Thread Peter Ehlers
On 2013-03-31 04:12, Jacob Fake wrote: Hey there, I'm relatively new to R, and am currently working my way through some basic tutorials. I have a large data set that I've been able to import into the program. I'm using a script in which x=readdir (the directory). I am trying to create a

[R] Where does R store workspace and commands that load on startup

2013-03-31 Thread jroyrobertson
When I close R and answer yes to save workspace, R automatically loads it and apparently also the command history at start up. I would like to know where R stores this information. I know that I can save .RData and .Rhistory files, but I would like to know how(where) R stores this information

Re: [R] How to represent certain values in a file as we want?

2013-03-31 Thread David Winsemius
On Mar 31, 2013, at 6:15 AM, Jonsson wrote: I have a raster file(1440*720 rows) contains values of 1 ,2 , and 3. when I plot the file , I got a map of three colors but I do not know which is which. How can I put those colors as as I want : 1=red 2=blue 3=green code: pvm -

Re: [R] special character encoding problem

2013-03-31 Thread Huidong TIAN
Thanks a lot! Here is the information you asked: sessionInfo() R version 2.15.3 (2013-03-01) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936 [2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936 [3]

Re: [R] Where does R store workspace and commands that load on startup

2013-03-31 Thread Sarah Goslee
By default R saves them as .RData and .Rhistory in the working directory - files with names beginning with a . are invisible on linux by default. ls -a at a shell command line in that directory will show them to you. Sarah On Sun, Mar 31, 2013 at 1:49 PM, jroyrobert...@comcast.net wrote: When

[R] lmer effects-type plot?

2013-03-31 Thread Nicole Ford
hello, all. while i have a mcmc running, i am looking at the frequestist method of my model. i have never done HLM so i am looking for ways to plot them that might yeild something useful like dr. fox's effects plot package. this is my model, where dem is democracy ranked continuous 1:10, trsut

Re: [R] lmer effects-type plot?

2013-03-31 Thread John Fox
Dear Nicole, Thanks to Sandy Weisberg, who is a coauthor of the package, the effects package has methods for objects produced by lme() in the nlme package and lmer() and glmer() in the lme4 package, to plot the fixed effects. See ?effect. I hope this helps, John -Original Message-

Re: [R] lmer effects-type plot?

2013-03-31 Thread Nicole Ford
John, Thanks for your reply! I will check again I must have missed it! ~Nicole Ford Ph.D. Student Graduate Assistant/ Instructor Department of Government and International Affairs University of South Florida office: SOC 012M e: nmhi...@mail.usf.edu http://gia.usf.edu/student/nford/ Sent from