[R] Unexpected behaviour from read.table

2018-02-04 Thread Michael
issue with read.table, although I can easily accept I'm missing something obvious here. Best, Michael R version 3.4.3 (2017-11-30) Platform: x86_64-apple-darwin15.6.0 (64-bit) / x86_64-pc-linux-gnu (64-bit) Running under: macOS High Sierra 10.13.2 / Ubuntu 16.04.3 LTS [[alt

[R] MANCOVA in R

2014-11-19 Thread Michael
this matter as well would be fantastic. Best wishes, Michael [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

[R] organizing my data before doing a cluster analysis

2016-01-26 Thread Michael
I have been reading the different cluster analysis methods available in R. I have a problem getting my data in the correct format so I can use these methods. I explain below. I am trying to cluster different fish species to see what fish are caught with each other on a commercial fishing tri

[R] output my results into Excel

2016-03-02 Thread Michael
I can get R to calculate the distance that I want between my data points. However, I am stuck trying to get R to output the data so I can paste it into Excel. Instead, R outputs a matrix mess in the console. Below are the steps I am taking to calculate the distance between my data. Also, I h

[R] chinese character support issue of rcom

2009-09-14 Thread Michael
Dear Sir, rcom is a great package of R. Yet it seems that there is some problem of Chinese character supporting. comGetPropery() always get the part of the Chinese character. Any suggestion would be appreciated. Thanks. Michael > library(rcom) Loading required package: rscproxy &g

[R] how to access Internet from within R?

2009-06-25 Thread Michael
Let's say I have some automation tasks where I have to fill a table field on a webpage, and then submit it to the server, and then obtain the returned value (a typical web query), how to do that in R? Thanks a lot! __ R-help@r-project.org mailing list h

[R] changing the loss function in the logistic regression?

2009-06-26 Thread Michael
Hi all, Is there a way to change the loss function in the logistic regression? Or we could provide a customized loss function in the logistic regression so we could use that loss function in the Cross Validation in logistic regression? Thanks a lot! __

[R] parallel R?

2009-06-26 Thread Michael
Hi all, Lots of big IT companies are renting out their computing facilities. Amazon has one such service. In my understanding, this will dramatically improve the speed of my R program -- currently the cross validation and model selection part is the bottle neck. It take a few days to just finish o

Re: [R] parallel R?

2009-06-26 Thread Michael
I guess when we move to Amazon AWS, we have to rewrite the whole R programs? On Fri, Jun 26, 2009 at 8:05 AM, Dirk Eddelbuettel wrote: > > On 26 June 2009 at 07:40, Michael wrote: > | Hi all, > | > | Lots of big IT companies are renting out their computing facilities. > | A

Re: [R] changing the loss function in the logistic regression?

2009-06-26 Thread Michael
Hi Frank, Thanks for your help! I want to incorporate lift score as the optimization objective. How to do that in logistic regression? Thanks! On Fri, Jun 26, 2009 at 7:47 AM, Frank E Harrell Jr wrote: > Michael wrote: >> >> Hi all, >> >> Is there a way to chan

[R] productivity tools in R?

2009-07-01 Thread Michael
Hi all, Could anybody point me to some latest productivity tools in R? I am interested in speeding up my R programming and improving my efficiency in terms of debugging and developing R programs. I saw my friend has a R Console window which has automatic syntax reminder when he types in the first

[R] timer in R?

2009-07-01 Thread Michael
Hi all, How could I set a timer in R, so that at fixed interval, the R program will invoke some other functions to run some tasks? Thank you very much! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] timer in R?

2009-07-01 Thread Michael
I use Windows. Thank you! On Wed, Jul 1, 2009 at 12:53 PM, Eduardo Leoni wrote: > I think you are better off writing the R script and invoke it using a > OS specific tool. For Unix-like systems there is cron. > > hth, > > -e > > On Wed, Jul 1, 2009 at 3:41 PM, Michael wro

[R] Question in using e1071 svm routine

2009-07-07 Thread Michael
Hi all, I've got the following error message in using e1071 svm routine... Could anybody please help me? Thank you! - model <- svm(y=factor(mytraindata[, 1]), x=mytraindata[, -1], probability=T) Error in if (any(co)) { : missing value where TRUE/FALSE needed In a

[R] ksvm question -- help! cannot get program to run...

2009-07-07 Thread Michael
What's wrong? Very sad about this... model <- ksvm(x=mytraindata[, -1], y=factor(mytraindata[, 1]), prob.model=T) Error in .local(x, ...) : x and y don't match. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] ksvm question -- help! line search failed...

2009-07-07 Thread Michael
Lianoglou wrote: > Hi, > > On Jul 7, 2009, at 6:44 PM, Michael wrote: > >> What's wrong? Very sad about this... >> >> model <- ksvm(x=mytraindata[, -1], y=factor(mytraindata[, 1]), >> prob.model=T) >> Error in .local(x, ...) : x and y don't match.

[R] help! Error in using Boosting...

2009-07-10 Thread Michael
Here is my code: mygbm<-gbm.fit(y=mytraindata[, 1], x=mytraindata[, -1], interaction.depth=4, shrinkage=0.001, n.trees=2, bag.fraction=1, distribution="bernoulli") Here is the error: Error in gbm.fit(y = mytraindata[, 1], x = mytraindata[, -1], interaction.depth = 4, : The dataset size is t

[R] hands-on classification tutorial needed...

2009-07-10 Thread Michael
Hi all, I am doing binary classification and want to improve the classification results on imbalanced response data. Currently the performance is poor. Are there ways I could improve the performance? I could either try different classification methodologies, or try exploring the data more, and t

[R] seeking consultant on data-mining and pattern classification...

2009-07-11 Thread Michael
Hi all, My friends are looking for a consultant on data-mining and pattern classification, hopefully in the San Fransisco and Silicon Valley area. Please send me an email and I will forward to my friends. Thank you! __ R-help@r-project.org mailing list

[R] SOS! error in GLM logistic regression...

2009-07-14 Thread Michael
Hi all, Could anybody tell me what happened to my logistic regression in R? mylog=glm(mytraindata$V1 ~ ., data=mytraindata, family=binomial("logit")) It generated the following error message: Error in model.frame.default(Terms, newdata, na.action = na.action, xlev = object$xlevels) : factor 's

[R] how to smooth timeseries without the lagging?

2009-07-24 Thread Michael
Hi all, If I use a moving average, it will smooth the choppy time series, but it will lead to lagging... How do I smooth timeseries without the lagging effect? Thanks! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help P

[R] Does anybody know how to connect to KDB from within R?

2009-09-24 Thread Michael
Please give me some pointers... Thanks a lot! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, r

Re: [R] [R-SIG-Finance] Does anybody know how to connect to KDB from within R?

2009-09-24 Thread Michael
Cool! I've seen the following files in that folder: Index of /q/interfaces/r/w32 NameLast modified SizeDescription Parent Directory - R.dll 12-Feb-2009 18:58 2.7M c.o 12-Feb-2009 18:5823K k.h 12-Feb-2009 18

[R] Does anybody know how to connect to SAS from within R?

2009-09-24 Thread Michael
And what might be the benefit doing that? Thanks a lot! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-c

Re: [R] Does anybody know how to connect to SAS from within R?

2009-09-25 Thread Michael
> Indrajit > > > > - Original Message > From: Michael > To: r-help > Sent: Friday, September 25, 2009 6:06:58 AM > Subject: [R] Does anybody know how to connect to SAS from within R? > > And what might be the benefit doing that? > > Thanks a lot! >

[R] step by step debugger in R?

2009-05-21 Thread Michael
Could anybody point me to the latest status of the most user-friendly debugger in R? How I wish I don't have to stare at my (long) code for ages and stuck... Thanks! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA

[R] good numerical optimization to use in R?

2009-05-21 Thread Michael
Hi all, Could anybody point me to a good/robust numerical optimization program to use in R? I am doing some MLE fitting. Thanks! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://w

[R] hands-on model selection and statistical data analysis books in R?

2009-05-21 Thread Michael
Hi all, I am fitting a model to time series of intra-day financial data. Could anybody point me to some hands-on books about model selection, model specification test, goodness-of-fit test, feature selection and statistical time series data analysis? I am looking not for theoretical or math books

[R] automatic model selection based on BIC in MLE

2009-05-21 Thread Michael
Hi all, Could anybody point me to an automatic model selection based on BIC for my MLE fitting problem, in R? I would imagine I just have to supply the MLE LLF function, and the dimension of the problem and the number of observations should be embedded in the definition of the LLF itself. And th

[R] fitting Autoregressive Conditional Duration and Cox Proportional Hazard model in R

2009-05-22 Thread Michael
Hi all, Could anybody point me to some existing code in R for fitting Autoregressive Conditional Duration and Cox proportional hazard model and with model selection and model specification tests? Thank you! __ R-help@r-project.org mailing list https://

Re: [R] step by step debugger in R?

2009-05-22 Thread Michael
Really I think if there is a Visual Studio strength debugger, our collective time spent in developing R code will be greatly reduced. 2009/5/22 Uwe Ligges : > > > Michael wrote: >> >> Could anybody point me to the latest status of the most user-friendly >> debugger in

[R] Goodness of fit for MLE?

2009-05-22 Thread Michael
Hi all, How do I evaluate how good is my MLE fit? Moreover, suppose I am having 30 data points, and 50 points, how do I compare which one gives better goodness-of-fit? What are the common test procedures to assess the goodness of fit for MLE? Thanks!

[R] rank reduction method in time series analysis?

2009-05-22 Thread Michael
Hi all, Suppose I have 100 simultaneous time series, what's the best statistical procedure to figure out a transformation of the data, and see if we could squeeze most of the information into a few transformed time series? Thanks! __ R-help@r-project.o

[R] how do I decide the best number of observations in MLE?

2009-05-28 Thread Michael
Of course, in MLE, if we collect more and more observations data, MLE will perform better and better. But is there a way to find a bound on parameter estimate errors in order to decide when to stop collect data/observations, say 1000 observations are great, but 500 observations is good enough...

[R] lack of memory for logistic regression in R?

2009-06-14 Thread Michael
Hi all, I am getting the following error message: > mymodel = glm(response ~ . , family=binomial, data=C); Error: cannot allocate vector of size 734.2 Mb In addition: Warning messages: 1: In array(0, c(n, n), list(levs, levs)) : Reached total allocation of 1535Mb: see help(memory.size) 2: In ar

Re: [R] lack of memory for logistic regression in R?

2009-06-14 Thread Michael
I have to use logistic regression... On Sun, Jun 14, 2009 at 8:04 PM, Frank E Harrell Jr wrote: > Also it would be useful to compare glm with the lrm function in the Design > package, for speed and memory use. > > Frank > > > David Winsemius wrote: >> >> On Jun 14

Re: [R] lack of memory for logistic regression in R?

2009-06-15 Thread Michael
gt;> >> On Jun 14, 2009, at 9:06 PM, Michael wrote: >> >>> Hi all, >>> >>> I am getting the following error message: >>> >>>> mymodel = glm(response ~ . , family=binomial, data=C); >>> >>> Error: cannot a

[R] hands-on book on multivariate statistics and data-mining with R?

2009-06-15 Thread Michael
Hi all, I am looking for pointers to good hands-on books on multivariate statistics and data-mining with R? So that I could learn while doing experiments... Thanks a lot! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] off topic but need your pointers about statistics

2009-06-18 Thread Michael
Hi all, I apologize for this off-topic question but I need your help -- I know there are lots of experts here. As a lover and student of statistics, I am thinking of building a tree of various branches of statistics and keeping track of the greatest historical inventions/discoveries in statistics

Re: [R] off topic but need your pointers about statistics

2009-06-18 Thread Michael
Thanks so much for the invaluable pointers folks! I just also wanted to note that my definition of statistics also includes data-mining, generic data-analysis, etc. , i.e. the statistics in the broad sense. Any more thoughts? Thanks a lot! On Thu, Jun 18, 2009 at 4:05 PM, Richard M. Heiberger w

[R] [Repost][Off Topic] Pointers needed for breakthrough in statistics

2009-06-19 Thread Michael
Hi all, Sorry for the reposting... I was advised to repost this question with more specific title. I apologize for this off-topic question but I really need your help -- I know there are lots of experts here. As a lover and student of statistics, I am thinking of building a tree of various branch

[R] good boosting tutorial and package in R?

2009-06-19 Thread Michael
Hi all, Could you please give me some pointers about what's the best boosting package in R currently? in terms of classification accuracy? And any pointers about tutorials and study-materials to curb the learning curve will be greatly appreciated! Thank you! p.s. Does anybody happen to know Bo

[R] correlation between categorical data

2009-06-19 Thread Michael
Hi all, In a data-frame, I have two columns of data that are categorical. How do I form some sort of measure of correlation between these two columns? For numerical data, I just need to regress one to the other, or do some pairs plot. But for categorical data, how do I find and/or visualize cor

[R] please recommend hands-on books on classification, data-mining and machine learning with R?

2009-06-19 Thread Michael
Hi all, Could anybody please recommend some hands-on books on classification, data-mining and machine learning with R? I would like to get a very good understanding of the statistical tools that are used in these areas, while reducing the learning curve. Thank you! __

[R] how to customize the CV function in Boosting?

2009-06-22 Thread Michael
Hi all, Is there a way to write my own error criteria function in the cross-validation part of the Boosting algorithm? I am talking about the GBM package. Of course, if you know other good Boosting implementation in R, please give me some pointers! I am looking for a good classifier (not neccessa

[R] easiest way to extend and recompile a package?

2009-06-22 Thread Michael
Hi all, I am thinking of extending a package by directly adding stuff to its C++ code. And then I have to recompile the package. Do I have to download the whole R source repository, in order to do the recompilation? What is the minimal setup requirement for such a recompilation? I am using MSVC

Re: [R] easiest way to extend and recompile a package?

2009-06-22 Thread Michael
Thanks a lot! There is no MSVC project for R on Windows? On Mon, Jun 22, 2009 at 5:32 PM, Duncan Murdoch wrote: > On 22/06/2009 6:52 PM, Michael wrote: >> >> Hi all, >> >> I am thinking of extending a package by directly adding stuff to its >> C++ code. And the

[R] [Classification] lifting score in R

2009-06-24 Thread Michael
Hi all, Could anybody give me some pointers to Cross Validation using Lifting Score as error function, as commonly used in data-mining and classification field in marketing and e-commerce research? Thanks! __ R-help@r-project.org mailing list https://s

Re: [R] [Classification] lifting score in R

2009-06-24 Thread Michael
Thanks a lot! Yet is there a way to incorporate the lifting score into Cross Validation, not just a plot? Thanks again! On Wed, Jun 24, 2009 at 9:07 AM, Tobias Sing wrote: > Michael, > > a lift chart for evaluating binary scoring classifiers, as I > understand it, plots... >

[R] how do I test regime shift in R?

2010-01-14 Thread Michael
Hi all, Let's say I have a time series data. I would like to test online for regime shift, are there any R packages that can do that? Thanks a lot! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the po

[R] How do I step thru all lines (including step into sub-routines) in a R script?

2012-11-13 Thread Michael
How do I step thru all lines (including step into sub-routines) in a R script? Hi all, I know I can put a "browser()" into any place... but how to step into sub-routines? Keep pressing "n" at the break-point seems not getting me into the sub-routines? Thanks a lot! [[alternative HTML

Re: [R] How do I step thru all lines (including step into sub-routines) in a R script?

2012-11-13 Thread Michael
but there are hundreds of such functions...? how to mark them all using "debug"? thanks! On Tue, Nov 13, 2012 at 3:43 PM, Duncan Murdoch wrote: > On 12-11-13 4:05 PM, Michael wrote: > >> How do I step thru all lines (including step into sub-routines) in a R >> s

Re: [R] How do I step thru all lines (including step into sub-routines) in a R script?

2012-11-13 Thread Michael
Is there a way to strip out all functions in hundreds of R script? And then I can create a script which does "debug(foo1); debug(foo2); debug(foo3);",etc? Thank you! On Tue, Nov 13, 2012 at 3:56 PM, Duncan Murdoch wrote: > On 12-11-13 4:50 PM, Michael wrote: > >> but ther

Re: [R] How do I step thru all lines (including step into sub-routines) in a R script?

2012-11-13 Thread Michael
pt /tmp/r.R containing > f1 <- function(x)x+1 > x <- 10 > x1 <- f1(x) > f2 <- function(x)x+1 > x2 <- f2(x) > I get: > > namesOfFunctionsDefined(parse("/tmp/r.R")) > [1] "f1" "f2" > > Bill Dunlap >

Re: [R] How do I step thru all lines (including step into sub-routines) in a R script?

2012-11-13 Thread Michael
ion(file)namesOfFunctionsDefined(parse(file > > ** ** > > Bill Dunlap > > Spotfire, TIBCO Software > > wdunlap tibco.com > > ** ** > > *From:* Michael [mailto:comtech@gmail.com] > *Sent:* Tuesday, November 13, 2012 2:51 PM > *To:* W

[R] please give us some suggestions regarding a modified PCA algo

2010-07-13 Thread Michael
Hi all, Let's say we have M x N matrix, which represents N time series, each having M observations in order of time. How do we find maximal number of linear combinations of these N time series, their mutual correlation has to be less than certain pre-specified constraints. That's to say, we woul

[R] How to generate multivariate uniform distribution random numbers?

2010-11-06 Thread michael
I wish to generate 100 by 1 vector of x1 and x2 both are uniform distributed with covariance matrix \Sigma. Thanks, Michael [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] How to generate multivariate uniform distribution random

2010-11-06 Thread michael
Ted, Thanks for your help, it is right on the money! for your comments: 1. Yes I mean 100 by 2, each variable x1, x2 is 100 by 1. 2. The correlation is the only free parameter. Michael On Sat, Nov 6, 2010 at 7:07 PM, Ted Harding wrote: > On 06-Nov-10 21:54:41, michael wrote: &g

Re: [R] How to generate multivariate uniform distribution random

2010-11-06 Thread michael
Jay, Yes I'm looking for unif(0,1) and your method works just fine. I suppose your method should work for dimensions greater than 2, am I right? Michael On Sat, Nov 6, 2010 at 8:05 PM, G. Jay Kerns wrote: > Dear Michael, > > On Sat, Nov 6, 2010 at 7:27 PM, michael

[R] How to get lasso fit coefficient(given penalty tuning parameter \lambda) using lars package

2010-12-05 Thread michael
ns c("step", "fraction", "norm"), but can I use the \lambda value instead of the norm which is the L1 norm of coefficients? Thanks, Michael [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] How to get lasso fit coefficient(given penalty tuning parameter \lambda) using lars package

2010-12-05 Thread michael
Oh, I just realize that I can actually just use this: beta = coef(lassofit, s=5, mode="lambda") Michael On Sun, Dec 5, 2010 at 8:10 PM, michael wrote: > Hi, all, > > I am using the lars package for lasso estimate. So I get a lasso > fit first: > > lass

[R] R.matlab package help

2010-08-27 Thread michael
file(con, open = "rb") 4: readMat.default(filename) 3: readMat(filename) 2: getVariable.Matlab(matlab, "B") 1: getVariable(matlab, "B") Thanks, Michael __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinf

Re: [R] R.matlab package help

2010-08-27 Thread michael
David, Thanks for your reply, I compile it under the old version of R, I'll update R and run it again. Michael On Fri, Aug 27, 2010 at 7:59 AM, michael wrote: > Hi,all >                      I have a problem running R.matlab package > (under 2.10.1 version). I can set

Re: [R] R.matlab package help

2010-08-27 Thread michael
e, same problem pops up: ??? Error: A MATLAB string constant is not terminated properly. Error in ==> MatlabServer at 197 eval(expr); Thanks, Michael On Fri, Aug 27, 2010 at 9:02 AM, michael wrote: > David, > >         Thanks for your reply, I compile it under the old version of

Re: [R] R.matlab package help

2010-08-27 Thread michael
aluated...: 'variables = {'B'};' Received an 'OK' reply (0) from the Matlab server. Evaluated expression on the Matlab server with return code 0. Asks the Matlab server to send variables via the local file system... Error in file(con, open = "

Re: [R] R.matlab package help

2010-08-27 Thread michael
sers\FAN'SH~1\AppData\Local\Temp\tp4f05d961_4460_47ba_a064_cfd418a19d60.mat -V6 B ??? Error: A MATLAB string constant is not terminated properly. Error in ==> MatlabServer at 197 eval(expr); Thanks, Michael [[alternative HTML version deleted]] ___

Re: [R] R.matlab package help

2010-08-27 Thread michael
984 bytes. ??? Undefined variable "java" or class "java.io.InputStreamByteWrapper". Error in ==> MatlabServer at 262 reader = java.io.InputStreamByteWrapper(4096); Thanks, Michael [[alternative HTML version deleted]] __ R-help

Re: [R] R.matlab package help

2010-08-27 Thread michael
be evaluated...: 'variables = {'B'};' Received an 'OK' reply (0) from the Matlab server. Evaluated expression on the Matlab server with return code 0. Asks the Matlab server to send variables via the local file system... Error in file(con, open = "rb&quo

Re: [R] R.matlab package help

2010-08-27 Thread michael
Henrik, The line before that is: Received cmd: 2 save C:\Users\FAN'S~1\AppData\Local\Temp\tpe2b4012b_f9ed_402d_af0f_f21ebd8116a6.mat -V6 B Thanks, Michael [[alternative HTML version deleted]] __ R-help@r-project.org mailing

Re: [R] R.matlab package help

2010-08-28 Thread michael
Henrik, Yes I replaced the MatlabServer.m and restarted Matlab and R, it seems the problem is still there. I see save(temp,-v6,B) there too. I use MatlabServer.m mannually in Matlab, actually I couldn't use it in R, Matlab will pop up a command window and never respond. Thanks, Mi

Re: [R] R.matlab package help

2010-08-28 Thread michael
der") attr(,"header")$description [1] "MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Sat Aug 28 18:40:26 2010 " attr(,"header")$version [1] "5" attr(,"header")$endian [1] "little" How c

Re: [R] R.matlab package help

2010-08-28 Thread michael
OK, I think it is just B[1]. Thanks! Michael On Sat, Aug 28, 2010 at 6:50 PM, michael wrote: > Henrik, >OK, finally I got the problem: I have an apostrophe in my > windowns 7 user name. That mess up the file name. So I logged in using a > guest account

[R] Need help on Newton-Raphson optimization

2011-08-10 Thread michael
code it by myself, can I get some advice on how to start (any good reference or sample code)? I really appreciate any help. thanks, Michael [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

[R] Is there an HDF explorer in R?

2012-06-01 Thread Michael
So that we could explore the structure of a HDF5 file? Thanks a lot! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.or

[R] Seeking pointers to various regression techniques with R?

2012-06-04 Thread Michael
Hi all, Could you please point me to good materials on various tricks/intuitions/techniques of regression, and hopefully in R? For example, what does lm(y~ x * w - 1) mean vs. lm(y ~ x/w -1 ) vs. lm (y ~ x:w-1), etc... I just found that even simple linear regression is not that simple and there

[R] How do I obtain the current active path of a function that's being called?

2012-06-05 Thread Michael
Hi all, How do I obtain the current active path of a function that's being called? That's to say, I have several source files and they all contain definition of function A. I would like to figure out which function A and from which file is the one that's being called and is currently active? Th

Re: [R] Seeking pointers to various regression techniques with R?

2012-06-05 Thread Michael
I read your website but still don't know the difference between the three formulas... Thank you! On Mon, Jun 4, 2012 at 11:14 PM, Joshua Wiley wrote: > Hi Michael, > > This is far from exhaustive (I wrote it as an introduction some years > ago) but you may find it useful

Re: [R] Seeking pointers to various regression techniques with R?

2012-06-05 Thread Michael
#x27;formula'). A good > and simple example is found in the MASS book (chapter 6) the code > for which is available in the 'Scripts' subfolder of library/MASS > of your R installation. > > Peter Ehlers > > > > On 2012-06-05 13:58, Michael wrote: > >>

Re: [R] How do I obtain the current active path of a function that's being called?

2012-06-05 Thread Michael
a source file to load in > function A, the old function A gets overwritten. > > Andrew Miles > > > On Jun 5, 2012, at 4:58 PM, Michael wrote: > > > Hi all, > > > > How do I obtain the current active path of a function that's being > called? > > >

[R] How to subset a matrix?

2012-06-12 Thread Michael
Hi all, Lets say I have a matrix A which is m x n. I also have a mask matrix MASK which is m x n with values in T/F, where T values make a sub-matrix in regutangular shape... I applied B=A[MASK] and it didn't work as expected... Any thoughts? [[alternative HTML version deleted]] _

[R] Help! Please recommend good books/resources on visualizing data and understanding multivariate relations...

2012-07-03 Thread Michael
Hi all, Could you please help me? I am looking for books/pointers/resources/tutorials on visualizing complex/big data and on understanding multivariate relations in complicated data. More specifically, we have categorical variables and are interested in how to visualize the categorical data and

[R] How to do non-parametric Anova for comparing two lm models?

2012-07-05 Thread Michael
I am trying to compare two lm models, one including a categorical variable and the other excluding the variable... The residuals of both lm fits are highly non-Gaussian. Could you please give me some pointers? Thank you! [[alternative HTML version deleted]]

[R] How to do goodness-of-fit diagnosis and model checking for rlm in R?

2012-07-06 Thread Michael
Hi all, I am reading the MASS book but it doesn't give examples about the diagnosis and model checking for rlm... My data is highly non-Gaussian so I am using rlm instead of lm. My questions are: 0. Are goodness-of-fit and model-checking using rlm completely the same as usual regression? 1.

Re: [R] How to do goodness-of-fit diagnosis and model checking for rlm in R?

2012-07-06 Thread Michael
Thanks a lot Bert. Yet still, I would like to know does the diagnosis and model-checking for rlm follow the same procedure as lm ... Thank you! On Fri, Jul 6, 2012 at 9:27 AM, Bert Gunter wrote: > > > On Fri, Jul 6, 2012 at 7:19 AM, Michael wrote: > >> Hi all, >

[R] how do I shut down "Hit to see next plot:" when plotting to pdf file?

2012-07-09 Thread Michael
Hi all, I am using "avPlots"... and it has the following: "Hit to see next plot:" But I just wanted to everything to be saved into a pdf file... How to skip these Returns? Thanks a lot! [[alternative HTML version deleted]] __ R-help@r-pro

[R] How does "rlm" in R decide its "w" weights for each IRLS iteration?

2012-07-18 Thread Michael
Hi all, I am also confused about the manual: a. The input arguments: wt.method are the weights case weights (giving the relative importance of case, so a weight of 2 means there are two of these) or the inverse of the variances, so a weight of two means this error is half as variable

[R] Is there a data/variable explorer in R?

2012-08-22 Thread Michael
Is there a data/variable explorer in R? Hi all, I am inspecting a complex variable which has lists inside lists... Is there a data-explorer that can help me view the structure and content of such variables? Thank you! [[alternative HTML version deleted]] __

[R] how to find the index of points selected from a scatter plot?

2012-08-31 Thread Michael
Hi all, I am using "locator" to select the points from a scatter plot... This is all fine. But the problem is that the locator only returns the axis values of the selected points. Instead, I would like to get the index of these select points... The axis values are real-values so it's a bit har

[R] Help! Weird behavioral difference between R interactive and command-line?

2012-09-06 Thread Michael
Help! Weird behavioral difference between R interactive and command-line? Hi all, This weird problem has been bugging me for a while. If I run the R program in an interactive session, it worked; But if I run the R program on command-line, it stopped with no reason: with "Execution halted" messa

[R] Help! Big problem when using "browser()" to do R debugging?

2011-12-02 Thread Michael
Hi all, Could you please help me? I am having the following weird problem when debugging R programs using "browser()": In my function, I've inserted a "browser()" in front of Step 1. My function has 3 steps and at the end of each step, it will print out the message "Step i is done"... However,

[R] Save debugging session info and resume from the middle?

2011-12-04 Thread Michael
Hi all, In debugging, I've met the following problem: myfunction = function (x, y) { for (i in 1:length(x)} { Part_A; #save the debugging session here? Part_B; } } All these parts are of very heavy computations and often can take hours to finish. How do I debug them efficientl

[R] how to view/edit large matrix/array in R?

2011-12-05 Thread Michael
head, tail and fix commands don't really work well if I have large matrix/array for which I would like to be able to scroll up and dow, left and right ... Could anybody please help me? Thanks [[alternative HTML version deleted]] __ R-help@r-pr

Re: [R] how to view/edit large matrix/array in R?

2011-12-05 Thread Michael
For example, "fix" does have scrolling, but could we have a grid based or cell based viewer/editor just like Excel sheet or like Matlab's object editor? For some weird reason, "fix" can only show numbers a weird format... On Mon, Dec 5, 2011 at 7:01 PM, Michael wro

Re: [R] how to view/edit large matrix/array in R?

2011-12-05 Thread Michael
And "fix" doesn't show the full content... On Mon, Dec 5, 2011 at 7:07 PM, Michael wrote: > For example, "fix" does have scrolling, but could we have a grid based or > cell based viewer/editor just like Excel sheet or like Matlab's object > editor? > &g

Re: [R] how to view/edit large matrix/array in R?

2011-12-05 Thread Michael
And is there a way to show variables side-by-side for comparison? On Mon, Dec 5, 2011 at 7:09 PM, Michael wrote: > And "fix" doesn't show the full content... > > On Mon, Dec 5, 2011 at 7:07 PM, Michael wrote: > >> For example, "fix" does have s

Re: [R] how to view/edit large matrix/array in R?

2011-12-05 Thread Michael
e problem. > > > > Some packages may provide the interactivity you seek -- check the CRAN > > GUI task view, R Commander, etc. > > > > -- Bert > > > > On Mon, Dec 5, 2011 at 5:01 PM, Michael wrote: > >> head, tail and fix commands don't rea

Re: [R] how to view/edit large matrix/array in R?

2011-12-05 Thread Michael
: graphics! -- but I can't provide anything more >>> useful without the specifics of the problem. >>> >>> Some packages may provide the interactivity you seek -- check the CRAN >>> GUI task view, R Commander, etc. >>> >>> -- Bert >>> >>

Re: [R] how to view/edit large matrix/array in R?

2011-12-05 Thread Michael
screen and then synchronize the two displays. > > On Mon, Dec 5, 2011 at 9:52 PM, Michael wrote: > > View doesn't allow editing? And not multi-window so I cannot put > variables > > side-by-side for comparsion? Thanks! > > > > On Mon, Dec 5, 2011 at 7:37 P

[R] help! what's wrong with setBreakpoint

2011-12-05 Thread Michael
Hi all, I am in the middle of debugging which is stopped using "browser()"... in myfile.R at around line #25. I was then stuck in a big loop which I want to escape and stop the program at the line after the big loop. In the debugging mode, I used Browse[2]> setBreakpoint("myfile.R#38") I th

Re: [R] how to view/edit large matrix/array in R?

2011-12-05 Thread Michael
Too bad... Browse[2]> data.entry(x_range) Error in dataentry(data, modes) : Editing of matrix and data.frame objects is not currently supported in RStudio On Mon, Dec 5, 2011 at 9:27 PM, Michael wrote: > In R-Studio, "edit" gives non-grid based format which is similar to &g

  1   2   3   4   5   6   7   8   9   10   >