Re: [R] R 3.0.0

2013-05-24 Thread Kjetil Halvorsen
I dont know of any package called glm. Did you try ?glm Kjetil On Fri, May 24, 2013 at 5:29 PM, Simmons, Susan J. simmon...@uncw.eduwrote: In the newest release of R (R 3.0.0), the glm package no longer supports logistic nor probit regression. Was this intentional? What package is best to

Re: [R] Send Email from R

2012-10-10 Thread Kjetil Halvorsen
see inline below. On Tue, Oct 9, 2012 at 10:35 AM, Rantony antony.akk...@ge.com wrote: Hi, i wanted to send a mail from R (using Eclips). Currently i installed the following packages base64_1.1 sendmailR_1.1-1 mail_1.0.tar.gz Rmail_1.1.tar.gz But while installing package some error was

[R] converting matlab code including C/mex to R

2012-10-04 Thread Kjetil Halvorsen
The title says it all! I am starting upon such a project, but now next to nothing about matlab/mex and how matlab-to-C communication is done. Any hints? links? (I am starting now to read up on mex) kjetil __ R-help@r-project.org mailing list

Re: [R] R for commercial use

2012-09-25 Thread Kjetil Halvorsen
well, R includes a Turing-complete programming language, so I guess It really is difficult to answer NO to any of this questions? They do not seem very precise. Kjetil On Tue, Sep 25, 2012 at 9:15 AM, mlell08 mlel...@gmail.com wrote: Hi, On 24.09.2012 16:21, Zastko,Samuel ALB co-mw wrote: Hi

[R] R versus SAS

2012-08-07 Thread Kjetil Halvorsen
I found this on CrossValidated: A medical statistician once told me, that they use SAS because if they make mistakes due to software bugs and it comes to lawsuits, SAS will recompensate them. R comes without warranty. Kjetil __ R-help@r-project.org

Re: [R] Generating Random Numbers

2012-07-19 Thread Kjetil Halvorsen
Those restrictions you have given do not define a unique distribution! so you need to think better about what you need. For instance, if you want a uniform distribution between min and max with n=5 independent observations from that, but conditional upon sum=total. For that, you could use

Re: [R] OT: Where's the new Tukey?

2012-07-17 Thread Kjetil Halvorsen
Venables Ripley: Modern Applied Statistics with S (fourth Edition) (known as MASS) Kjetil On Sat, Jul 14, 2012 at 4:01 PM, Larry White ljw1...@gmail.com wrote: I'm looking for a single book that provides a deep, yet readable introduction to applied data analysis for general readers. I'm

Re: [R] Problem creation tensor

2012-07-17 Thread Kjetil Halvorsen
Amusing that someone named RICCI is asking about tensors (sorry!) Kjetil On Tue, Jul 17, 2012 at 6:31 AM, Peppe Ricci peppepega...@gmail.com wrote: Hi guys, I need some help to analyzing my data. I start to describe my data: I have 21 matrices, every matrix on the rows has users and on

Re: [R] QQplot normally distributed

2012-06-19 Thread Kjetil Halvorsen
Or uou can try library(car) ?qqPlot use that with argument simulate=TRUE, which will give a simulated envelope around the curve for comparison. Kjetil On Tue, Jun 19, 2012 at 9:30 AM, Özgür Asar oa...@metu.edu.tr wrote: Hi, Try boxplot for outliers. To decide whether they influence

Re: [R] Cholesky decomposition error

2012-06-18 Thread Kjetil Halvorsen
: Kjetil Halvorsen [mailto:kjetilbrinchmannhalvor...@gmail.com] Sent: Sunday, June 17, 2012 4:10 AM To: Nataraj B (ORLL-Biotech) Cc: r-help@r-project.org Subject: Re: [R] Cholesky decomposition error see below. On Fri, Jun 15, 2012 at 11:53 PM,  nata...@orchidpharma.com wrote: Dear Mr.Kjetil

Re: [R] Cholesky decomposition error

2012-06-16 Thread Kjetil Halvorsen
,]131 [3,]113 Kjetil Regards, B.Nataraj -Original Message- From: Kjetil Halvorsen [mailto:kjetilbrinchmannhalvor...@gmail.com] Sent: Friday, June 15, 2012 11:09 PM To: Nataraj B (ORLL-Biotech) Cc: gunter.ber...@gene.com; r-help@r-project.org Subject: Re

Re: [R] Cholesky decomposition error

2012-06-15 Thread Kjetil Halvorsen
see inline. On Fri, Jun 15, 2012 at 4:33 AM, nata...@orchidpharma.com wrote: Thanks for your reply. I am sorry and I am bit hurried up to say before doing a proper due diligence, I have found out that during the optimization the variables tend to vary the values of the matrix , the function

Re: [R] Determinant and inverse using cholsky parameter

2012-06-08 Thread Kjetil Halvorsen
On Fri, Jun 8, 2012 at 10:08 AM, Özgür Asar oa...@metu.edu.tr wrote: Hi, Isn't the Cholesky decomposition of A=L (L)^T where T stands for transpose and L is the Cholesky factor of A. You say you have the  Cholesky decomposition, isn't it L (above)? A-L%*%t(L) det(A) solve(A) would be

Re: [R] Determinant and inverse using cholsky parameter

2012-06-08 Thread Kjetil Halvorsen
?chol2inv kjetil On Fri, Jun 8, 2012 at 1:43 AM, nata...@orchidpharma.com wrote: Dear R list members, I have a vector of Cholesky parameterization of a matrix let say A. I would like to compute the determinant and inverse of the original matrix A from the vector of cholesky parameters ,

Re: [R] Optimizing variables represented in a matrix

2012-05-31 Thread Kjetil Halvorsen
If you want an helpful answer, you must describe your real problem MUCHbetter! This is way too confused. Kjetil On Thu, May 31, 2012 at 7:37 AM, nata...@orchidpharma.com wrote: Dear R-list members, I have a matrix with non-numeric variables in it and I have to optimize the variables

Re: [R] introducing R to high school students

2012-04-19 Thread Kjetil Halvorsen
see below. On Wed, Apr 18, 2012 at 2:39 PM, Hadley Wickham had...@rice.edu wrote: If the students are in a science research class, does that mean they have data from their own research that they would want to understand better?  I think that would be much more motivating than anything else.

Re: [R] some questions about sympy (that is, rSymPy)

2012-04-17 Thread Kjetil Halvorsen
see below! On Sat, Apr 14, 2012 at 4:05 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: On Fri, Apr 13, 2012 at 9:50 PM, Kjetil Halvorsen kjetilbrinchmannhalvor...@gmail.com wrote: I am experimenting with rSymPy, and it seems to work nice. However, I dislike the need to wrap all sympy

[R] some questions about sympy (that is, rSymPy)

2012-04-13 Thread Kjetil Halvorsen
I am experimenting with rSymPy, and it seems to work nice. However, I dislike the need to wrap all sympy expressions within quotes, it leads to ugly calls like library(rSymPy) Var(x,y,z) sympy((x+y)**2) and so on. Inspired by the function cq from mvbutiles package: library(mvbutils) cq

Re: [R] some questions about sympy (that is, rSymPy)

2012-04-13 Thread Kjetil Halvorsen
see below. On Fri, Apr 13, 2012 at 8:50 PM, Kjetil Halvorsen kjetilbrinchmannhalvor...@gmail.com wrote: I am experimenting with rSymPy, and it seems to work nice. However, I dislike the need to wrap all sympy expressions within quotes, it leads to ugly calls like library(rSymPy) Var(x,y,z

Re: [R] Problems with CRAN package Ryacas

2012-04-09 Thread Kjetil Halvorsen
see below! On Mon, Apr 9, 2012 at 3:04 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: On Mon, Apr 9, 2012 at 4:02 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: On Mon, Apr 9, 2012 at 2:47 PM, Martin Maechler maech...@stat.math.ethz.ch wrote: Apropos: I don't have the

Re: [R] Problems with CRAN package Ryacas

2012-04-09 Thread Kjetil Halvorsen
is available so you won't have to build yacas.  I don't know if anyone has tried that yet but its worth a try. Another possibility is to try rsympy or rmathpiper (see introductory paragraphs on Ryacas home page for links). On Mon, Apr 9, 2012 at 8:00 PM, Kjetil Halvorsen

[R] Problems with CRAN package Ryacas

2012-04-08 Thread Kjetil Halvorsen
First: sessionInfo() R version 2.15.0 (2012-03-30) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=C LC_NAME=C

Re: [R] regression for poisson distributed data

2012-04-03 Thread Kjetil Halvorsen
¿Just write down the loglikelihood function and send it to optim? Kjetil On Tue, Apr 3, 2012 at 8:58 AM, Joachim Audenaert joachim.audena...@pcsierteelt.be wrote: Hello all, I would like to get parameter estimates for different models. For one of them I give the code in example. I am

Re: [R] simple matrix calculation

2012-03-28 Thread Kjetil Halvorsen
see inline. On Wed, Mar 28, 2012 at 2:46 PM, Kehl Dániel ke...@ktk.pte.hu wrote: Dear list-members, I have a 9-by-9 matrix lets call it A with first row a11, a12, a13,..., a19 etc. I also have a vector of length 3 (B). I want to construct a matrix of size 3x3 in the following way: - divide

[R] R-help-es have reached 500 members!

2012-03-13 Thread Kjetil Halvorsen
This posting is only to celebrate that R-help-es (R-help for Spanish Speakers) have reached 500 members! (and to thank Patricia for doing the bulk of admin work). Kjetil __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Fiedler

2012-02-03 Thread Kjetil Halvorsen
Hola! This can be done with the CRAN package igraph, which contains (part of) the arpack library for computing only some eigenvalues/eigenvectors of sparse matrices. arpack gives you the option of computing a few of the smallest or a few of the largest eigenvalues/vectors. Do library(igraph)

Re: [R] General help - online statistics courses?

2011-09-10 Thread Kjetil Halvorsen
On Thu, Sep 8, 2011 at 5:58 PM, Rolf Turner rolf.tur...@xtra.co.nz wrote: On 09/09/11 06:46, Spencer Graves wrote: SNIP I'd rather ask a stupid question than make a stupid mistake. SNIP Fortune? Its already there, more or less: library(fortunes) fortune(spencer) kjetil    cheers,  

Re: [R] Decision Trees /Decision Analysis with R?

2011-06-08 Thread Kjetil Halvorsen
see inline below. On Wed, Jun 8, 2011 at 12:37 PM, Anupam anupa...@gmail.com wrote: It is difficult for someone from a statistical frame of mind to understand what this is about --- you need to think a bit differently. It is mostly a simulation and decision analysis, with some use of

Re: [R] Stirlings Approximation

2011-05-09 Thread Kjetil Halvorsen
?lchoose ?lgamma ?lfactorial On Mon, May 9, 2011 at 7:45 PM, Jim Silverton jim.silver...@gmail.com wrote: I have some big combinations like: choose 784645433 Can R compute these? Is there any package that does stirlings approximation in R? -- Thanks, Jim.  

Re: [R] R² for non-linear model

2011-03-17 Thread Kjetil Halvorsen
see inline. On Thu, Mar 17, 2011 at 4:58 AM, Rubén Roa r...@azti.es wrote: Hi Alexx, I don't see any problem in comparing models based on different distributions for the same data using the AIC, as long as they have a different number of parameters and all the constants are included. For

Re: [R] Re; Fitting a Beta distribution

2011-03-16 Thread Kjetil Halvorsen
If yoy write out the likelihood equations for an independent sample size n from the beta(a,b) distribution: L \propto \prod_i dbeta(y_i,a,b) log(L) = constant + \sum_i dbeta(y_i,a,b,log=TRUE) log(L)= constant + \sum_i (a-1) log(y_i) + (b-i) log(1-y_i) you see that your problem comes from trying

Re: [R] sample size of 2 groups of skewed data

2011-03-15 Thread Kjetil Halvorsen
did you try to fit your data with a skew-normal/skew-t distribution? If that works, you can use simulation. Kjetil On Tue, Mar 15, 2011 at 2:31 AM, Lao Meng laomen...@gmail.com wrote: Hi all: I have a question on sample size calculation of 2 groups of data. If 2 groups of data are all normal

Re: [R] (R) transitions in a Markov Chain

2011-03-15 Thread Kjetil Halvorsen
To add to this, I am sure this have been answerted earlier on the list, so you could try to search the archives. On Tue, Mar 15, 2011 at 8:59 PM, Ben Bolker bbol...@gmail.com wrote: Estefania Nares findingstefan at hotmail.com writes: I have to generate 1000 transitions of a discrete time

Re: [R] power regression: which package?

2011-03-02 Thread Kjetil Halvorsen
?nls install.packages(nls2,dep=T) library(nls2) ?nls2 install.packages(nlstools) library(help=nlstools) install.packages(NISTnls, dep=T) library(help=NISTnls) the last one give access to many examples. On Wed, Mar 2, 2011 at 1:55 PM, David Croll david.cr...@gmx.ch wrote: Dear R users and R

Re: [R] QuadTree

2011-02-22 Thread Kjetil Halvorsen
Did you try RSiteSearch(QuadTree) ? It does seem to give some hits. On Sun, Feb 20, 2011 at 7:54 PM, Jaimin Dave davejaim...@gmail.com wrote: Could any one tell me how to implement QuadTree in R? Or are there any packages avaialble to implement it in R.        [[alternative HTML version

Re: [R] linear regression and t-distribution

2011-02-22 Thread Kjetil Halvorsen
did you try RSiteSearch(t-regression) ? That seems to give some usefull hits. On Mon, Feb 21, 2011 at 7:42 AM, Rosario Garcia Gil m.rosario.gar...@slu.se wrote: Hello I have a data set with outlier and it is not normally distributed. I would instead like to use a more robust distribution

Re: [R] formal concept analysis in R?

2011-02-22 Thread Kjetil Halvorsen
You could try install.packages(sos, dep=T) library(sos) h - finfFn(formal concept analysis) h but it does not seem to find anything relevant. On Wed, Feb 16, 2011 at 6:21 PM, Mark Heckmann mark.heckm...@gmx.de wrote: I am looking for an R package for formal concept analysis

Re: [R] Parzen fractional degree of differencing estimator

2011-02-22 Thread Kjetil Halvorsen
searching using library(sos) h - ???Parzen fractional estimator h leads to library(fracdiff) # on CRAN ?fdSperio On Wed, Feb 16, 2011 at 5:19 PM, Fologo Dubois fologodub...@yahoo.com wrote: Does R have a function for Parzen fractional degree of differencing estimator? I am referring to the

Re: [R] Generating uniformly distributed correlated data.

2011-02-21 Thread Kjetil Halvorsen
one simple idea is to generate correlated normals (vector multivariate normal), and then use the cumulative distribution function F_i of component i such: F_i(X_i), which is uniform. Kjetil (this will not preserve tha value of the correlation coefficient, so you must experiment) On Mon, Feb 21,

Re: [R] Bron-Kerbosch algorithm

2011-02-14 Thread Kjetil Halvorsen
You could have tried to type RSiteSearch(Bron-Kerbosch) into R. As it is, that does not give any hits. But in packages graph or igraph (on CRAN) there should be some algorithm. Kjetil On Mon, Feb 14, 2011 at 4:33 PM, Yan Jiao y.j...@ucl.ac.uk wrote: Dear R users I need to solve the finding

Re: [R] A Math question

2011-02-14 Thread Kjetil Halvorsen
or even better: http://mathoverflow.net/ On Sun, Feb 13, 2011 at 8:02 PM, David Winsemius dwinsem...@comcast.net wrote: On Feb 13, 2011, at 4:47 PM, Maithula Chandrashekhar wrote: Dear all, I admit this is not anything to do R and even with Statistics perhaps. Strictly speaking this is a

Re: [R] Simulation of Multivariate Fractional Gaussian Noise and Fractional Brownian Motion

2011-02-10 Thread Kjetil Halvorsen
What you can do to find out is to type into your R session RSiteSearch(multivariate fractional gaussian) That seems to give some usefull results. Kjetil On Tue, Feb 8, 2011 at 1:51 PM, Wonsang You y...@ifn-magdeburg.de wrote: Dear R Helpers, I have searched for any R package or code for

Re: [R] Positive Definite Matrix

2011-02-01 Thread Kjetil Halvorsen
see inline below. On Tue, Feb 1, 2011 at 2:25 PM, Mike Marchywka marchy...@hotmail.com wrote: Date: Tue, 1 Feb 2011 15:41:01 + From: alex.sm...@gmail.com To: spencer.gra...@structuremonitoring.com CC: r-help@r-project.org; maech...@stat.math.ethz.ch Subject: Re: [R] Positive Definite

Re: [R] Regularization of a matrix that has some tiny negative eigenvalues

2011-01-31 Thread Kjetil Halvorsen
The Matrix package (which should already be insatlled on your computer, since it is Recommended) have the function nearPD, which should do the job. Kjetil On Sat, Jan 29, 2011 at 1:32 AM, Dimitri Liakhovitski dimitri.liakhovit...@gmail.com wrote: Dear all: In what I am doing I sometimes get a

Re: [R] Link prediction in social network with R

2010-12-22 Thread Kjetil Halvorsen
You could start having a look at cran packages like sna or statnet, or search cran for network and you nfind a lot of packages! On Wed, Dec 22, 2010 at 12:00 AM, EU JIN LOK ejl...@hotmail.com wrote: Dear R users I'm a novice user of R and have absolutely no prior knowledge of social

Re: [R] ideas, modeling highly discrete time-series data

2010-12-21 Thread Kjetil Halvorsen
You could try the timeseries list at https://www.jiscmail.ac.uk/cgi-bin/webadmin?A0=TIMESERIES kjetil On Mon, Dec 20, 2010 at 6:26 PM, Mike Williamson this.is@gmail.com wrote: Hello all,    First of all, thanks so those of you who helped me a week or so ago managing a time series with

Re: [R] Integrate two function in R

2010-12-16 Thread Kjetil Halvorsen
see inline. On Thu, Dec 16, 2010 at 10:11 AM, Ben Bolker bbol...@gmail.com wrote: Alaios alaios at yahoo.com writes: Hello I have two function in R like g(x)=2x-3 and s(x)=5x^2+2 and I want to find the integrafl of the g(x)*s(x) inside the interval of [a,b]  Analytically or

Re: [R] How to get 'R' to talk BACK to other languages / scripts??

2010-12-03 Thread Kjetil Halvorsen
see below. On Fri, Dec 3, 2010 at 3:23 PM, Mike Williamson this.is@gmail.com wrote: Hey everyone,    I know that I can call 'R' from other scripts, and that I can make command calls from 'R' (e.g., using system() ).  But how can I get 'R' to RETURN values to the script that called it.  

Re: [R] testing and ploting t-distribution!!!!! Thank you so much:)

2010-12-03 Thread Kjetil Halvorsen
see inline. On Fri, Dec 3, 2010 at 11:03 PM, 5...@queensu.ca wrote: Hi everyone, i don't get the qqplot which is used to test if the sample followed a t-distribution? qqplot(qt(ppoints(z), df = 7.6), z, xlab = Q-Q plot for t dsn) qqline(z) what qt() means? what ppoints() means? You

Re: [R] Extracting selected rows from a matrix

2010-11-29 Thread Kjetil Halvorsen
see below. On Mon, Nov 29, 2010 at 5:56 PM, pankaj borah pankajborah...@yahoo.co.in wrote: Hi, I have matrix of 104 columns and 3 rows (Each Row has rowname). I have 13 different  list of selected rownames (character) say 1000 each. Now I want to extract the all the columns according

Re: [R] multivariate analysis

2010-11-27 Thread Kjetil Halvorsen
if you want linear models (not specified), something like this should work: Put your 1800 response variables (as columns) in a nx1800 matrix resp_mat, and then lm(resp_mat ~ latitude*age) # interactions lm(resp_mat ~ latitude+age # without interactions Kjetil On Fri, Nov 26, 2010 at 9:01

Re: [R] installing ONLY the documentation files (Rd) for many packages?

2010-11-26 Thread Kjetil Halvorsen
see below. On Wed, Oct 27, 2010 at 3:32 AM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: On Tue, 26 Oct 2010, Kjetil Halvorsen wrote: I have been searching the documentation for some time nmow, but cannot find it. It must be possible to download packages (many), but only install the help

Re: [R] installing ONLY the documentation files (Rd) for many packages?

2010-11-26 Thread Kjetil Halvorsen
see below. On Fri, Nov 26, 2010 at 11:50 AM, Kjetil Halvorsen kjetilbrinchmannhalvor...@gmail.com wrote: see below. On Wed, Oct 27, 2010 at 3:32 AM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: On Tue, 26 Oct 2010, Kjetil Halvorsen wrote: I have been searching the documentation for some

Re: [R] ?summaryRprof running at 100% cpu for one hour ...

2010-11-22 Thread Kjetil Halvorsen
see below. 2010/11/21 Uwe Ligges lig...@statistik.tu-dortmund.de: On 21.11.2010 18:13, Kjetil Halvorsen wrote: ?save.image And at this point it has been running with one cpu at 100% for over an hour! It's OK to take an hour (due to memory - disc IO) if it uses swap space heavily

Re: [R] ?summaryRprof running at 100% cpu for one hour ...

2010-11-22 Thread Kjetil Halvorsen
] ?summaryRprof running at 100% cpu for one hour ... see below. 2010/11/21 Uwe Ligges : On 21.11.2010 18:13, Kjetil Halvorsen wrote: ?save.image And at this point it has been running with one cpu at 100% for over an hour! It's OK to take an hour (due to memory - disc IO

Re: [R] ?summaryRprof running at 100% cpu for one hour ...

2010-11-22 Thread Kjetil Halvorsen
see below. On Mon, Nov 22, 2010 at 12:57 PM, Mike Marchywka marchy...@hotmail.com wrote: Date: Mon, 22 Nov 2010 12:41:06 -0300 Subject: Re: [R] ?summaryRprof running at 100% cpu for one hour ... From: kjetilbrinchmannhalvor...@gmail.com To:

Re: [R] ?summaryRprof running at 100% cpu for one hour ...

2010-11-20 Thread Kjetil Halvorsen
see below. 2010/11/20 Uwe Ligges lig...@statistik.tu-dortmund.de: On 19.11.2010 21:43, Kjetil Halvorsen wrote: This is very strange. (Debian squeeze, R 2.12.0 compiled from source) I did some moderately large computation (including svd of a 560x50 matrix), running a few minutes, and R

Re: [R] ?summaryRprof running at 100% cpu for one hour ...

2010-11-20 Thread Kjetil Halvorsen
. After finnishing this, giving some simple commands , like ls() or ?Rprof, leads to the problem described originally. Will post more info tomorrow. Kjetil On Sat, Nov 20, 2010 at 9:30 PM, Kjetil Halvorsen kjetilbrinchmannhalvor...@gmail.com wrote: see below. 2010/11/20 Uwe Ligges lig

[R] ?summaryRprof running at 100% cpu for one hour ...

2010-11-19 Thread Kjetil Halvorsen
This is very strange. (Debian squeeze, R 2.12.0 compiled from source) I did some moderately large computation (including svd of a 560x50 matrix), running a few minutes, and R memory increasing to about 900MB on this 2 GB ram laptop. I had done Rprof(memory.profiling=TRUE) first. Then doing

Re: [R] autocorrelation in count data

2010-11-19 Thread Kjetil Halvorsen
see http://onlinelibrary.wiley.com/doi/10./j.1467-9892.2010.00684.x/abstract kjetil On Fri, Nov 19, 2010 at 6:02 PM, sa...@hsu-hh.de wrote: hello, I try to model traffic accidents with the following model: glm.nb(y~j+w+m+sf+b+ft,data=fr[]). the problem is that there exist

Re: [R] exploratory analysis of large categorical datasets

2010-11-13 Thread Kjetil Halvorsen
you can also look at correspondence analysis, which is implemented in multiple CRAN packages, for instance MASS, ade4 and others. See the multivariate analysis task view on CRAN. Kjetil On Thu, Nov 11, 2010 at 10:39 PM, Dennis Murphy djmu...@gmail.com wrote: Hi: A good place to start would be

Re: [R] Hashing and environments

2010-11-06 Thread Kjetil Halvorsen
some of this can be automated using the CRAN package hash. Kjetil On Sat, Nov 6, 2010 at 10:43 PM, William Dunlap wdun...@tibco.com wrote: I would make make an environemnt called wfreqsEnv whose entry names are your words and whose entry values are the information about the words.  I find it

Re: [R] Please help me about Monte Carlo Permutation

2010-10-28 Thread Kjetil Halvorsen
This is one way. I read your two columns of data into two variables, x and y. Then: test - replicate(5000, cor(x, sample(y))) hist(test) Kjetil On Thu, Oct 28, 2010 at 9:49 AM, Chitra cbban...@gmail.com wrote: Dear R experts, I am sorry for my inability. I have the following dataset:  

Re: [R] A competition to create a recommendation engine for R packages

2010-10-28 Thread Kjetil Halvorsen
Follow-up. Started to look at this. First step is to make a graph showing dependencies between R packages(CRAN, Bioconductor,Omegahat). As a curiosum, this graph has diameter 20: require(igraph) diameter(CRANgraph) [1] 20 dia - get.diameter(CRANgraph) dia [1] 221 1866 2344 2192 330 1615

Re: [R] reading multiple XML files into an R table

2010-10-27 Thread Kjetil Halvorsen
for the loop part: put all your xml files in a directory with no other files, do setwd(directory/with/xml/files) files - list.files() for (file in files) processs the files kjetil 2010/10/27 Ista Zahn iz...@psych.rochester.edu: Hi Jørgen, You will be better served by learning how to find the

Re: [R] cube root of a negative number

2010-10-26 Thread Kjetil Halvorsen
Look at this: x - as.complex(-4) x [1] -4+0i x^(1/3) [1] 0.793701+1.37473i (-4)^(1/3) [1] NaN It seems that R gives you the principal root, which is complex, and not the real root. Kjetil On Tue, Oct 26, 2010 at 8:05 PM, Gregory Ryslik rsa...@comcast.net wrote: Hi, This might be me

[R] installing ONLY the documentation files (Rd) for many packages?

2010-10-26 Thread Kjetil Halvorsen
I have been searching the documentation for some time nmow, but cannot find it. It must be possible to download packages (many), but only install the help system? How? Kjetil __ R-help@r-project.org mailing list

[R] compiling and testing R-2.12.0

2010-10-15 Thread Kjetil Halvorsen
I downloaded the tarball for R-2-12.0, made ./configure make without problems. Then make test ...which have now been running for more than an hour, and seems to have stalled at: comparing 'reg-plot-latin1.ps' to './reg-plot-latin1.ps.save' ... OK make[3]: Leaving directory

Re: [R] R editor in ubuntu!

2010-10-05 Thread Kjetil Halvorsen
emacs23+ess is great BUT there is a very large problem which is driving me away from it: (on ubuntu) since version 23, emacs has a very problematic bug, which I have reported as: bug#6193: emacs 23 in ubuntu 10.04 gnu linux: black lines overwrite text! but the emacs devs does'nt seem to respond.

Re: [R] R editor in ubuntu!

2010-10-05 Thread Kjetil Halvorsen
see below. On Tue, Oct 5, 2010 at 10:25 AM, Laurent Gatto laurent.ga...@gmail.com wrote: Dear Kjetil, On 5 October 2010 15:12, Kjetil Halvorsen kjetilbrinchmannhalvor...@gmail.com wrote: emacs23+ess is great BUT there is a very large problem which is driving me away from it: (on ubuntu

Re: [R] R editor in ubuntu!

2010-10-05 Thread Kjetil Halvorsen
I really like emacs+ess, so getting that to work again is the preferred solution... Kjetil On Tue, Oct 5, 2010 at 11:50 AM, Erik Iverson er...@ccbr.umn.edu wrote: Another alternative is to use Geany [1]. It would save you the trouble of learning Emacs, /s/save/deprive /s/trouble/thrill

Re: [R] R editor in ubuntu!

2010-10-05 Thread Kjetil Halvorsen
Forgot ... The best thing with emacs , it that it has modes for close to everything, so you don'nt need to learn new editors for whatever strange projecy you start. By the way, i installed eclipse to try it out. It is way of biggish... Kjetil On Tue, Oct 5, 2010 at 12:30 PM, Kjetil Halvorsen

Re: [R] Web forum - should I make one?

2010-09-21 Thread Kjetil Halvorsen
Did you look at: http://rwiki.sciviews.org/doku.php ? Kjetil 2010/9/21 Vojtěch Zeisek vojtech.zei...@opensuse.org: Hello, this might be little off-topic, but still... I have not found any official web forum for R users. Did I look good? If not, I'm sorry and shame on me! :-) Such forums are

Re: [R] Calculating with tolerances

2010-09-09 Thread Kjetil Halvorsen
I tried RSiteSearch(Interval aritmetic) which gives zero hits. There exist a http://www.boost.org/ free software library for interval aritmetic, which it shoub be possible to link to R. Kjetil On Thu, Sep 9, 2010 at 6:28 PM, Carl Witthoft c...@witthoft.com wrote: That won't do much good.  

Re: [R] 3D tomography data

2010-08-31 Thread Kjetil Halvorsen
I guess you need to be more specific about what you want to do. But a search with RSiteSearch(Tomography) leeds to one package names RTOMO, which you can install by calling install.packages(RTOMO,dep=T) then type library(RTOMO) library(help=RTOMO) kjetil On Tue, Aug 31, 2010 at 9:41 AM,

Re: [R] How to measure correlations in terms of distance and draw them on a 2-dimmentional plot?

2010-08-19 Thread Kjetil Halvorsen
You could also try RSiteSearch(correlation circle) Kjetil On Thu, Aug 19, 2010 at 11:31 AM, weijian21cn wli...@stern.nyu.edu wrote: Thank you all a lot for all the suggestion! -- View this message in context:

Re: [R] Can anybody help me understand AIC and BIC and devise a new metric?

2010-07-05 Thread Kjetil Halvorsen
You should have a look at: Model Selection and Model Averaging Gerda Claeskens K.U. Leuven Nils Lid Hjort University of Oslo Among other this will explain that AIC and BIC really aims at different goals. On Mon, Jul 5, 2010 at 4:20 PM, Dennis Murphy djmu...@gmail.com wrote: Hi: On Mon, Jul

Re: [R] distance matrix?

2010-06-28 Thread Kjetil Halvorsen
abs(outer(1:10, 1:10, FUN=-)) [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,]012345678 9 [2,]101234567 8 [3,]210123456 7 [4,]321012

Re: [R] Euclidean Distance Matrix Analysis (EDMA) in R?

2010-06-25 Thread Kjetil Halvorsen
There is a freely downloadable and very relevant ( readable) book at https://ccrma.stanford.edu/~dattorro/mybook.html Convex Optimization and Euclidean Distance geometry, and it indeed names EDMA as a form of multidimensional scaling (or maybe in the oposite way). You should have a look at the

Re: [R] Forcing scalar multiplication.

2010-06-25 Thread Kjetil Halvorsen
?sweep On Fri, Jun 25, 2010 at 2:43 PM, rkevinbur...@charter.net wrote: I am trying to check the results from an Eigen decomposition and I need to force a scalar multiplication. The fundamental equation is: Ax = lx. Where 'l' is the eigen value and x is the eigen vector corresponding to the

Re: [R] Euclidean Distance Matrix Analysis (EDMA) in R?

2010-06-24 Thread Kjetil Halvorsen
¿Is'nt this just another name for multidimensional scaling? Kjetil On Thu, Jun 24, 2010 at 9:15 AM, Tal Galili tal.gal...@gmail.com wrote: Isn't this what ?dist Does ? Tal Contact Details:--- Contact me:

Re: [R] Unique Data Frame Name?

2010-06-23 Thread Kjetil Halvorsen
\Why not put all the data frames in a list? Kjetil On Wed, Jun 23, 2010 at 6:56 PM, Douglas M. Hultstrand dmhul...@metstat.com wrote: Hello, I am trying to create a data frame with a unique name, based on indexing of for loop.  I was wondering if there is a way to do this, I keep running

Re: [R] Popularity of R, SAS, SPSS, Stata...

2010-06-22 Thread Kjetil Halvorsen
://stat.ethz.ch/mailman/listinfo Kjetil Thanks, Bob -Original Message- From: Kjetil Halvorsen [mailto:kjetilbrinchmannhalvor...@gmail.com] Sent: Monday, June 21, 2010 9:12 AM To: Muenchen, Robert A (Bob) Cc: ted.hard...@manchester.ac.uk; r-help@r-project.org Subject: Re: [R] Popularity

Re: [R] Popularity of R, SAS, SPSS, Stata...

2010-06-21 Thread Kjetil Halvorsen
One should also take into account the other R list. For example, as of today the number of subscribers to R-help-es (R-help for spanish speakers) is 290, increasing. Kjetil Halvorsen On Sun, Jun 20, 2010 at 6:28 PM, Muenchen, Robert A (Bob) muenc...@utk.edu wrote: -Original Message

[R] strange error message from freedesktop.org in the R window!

2010-06-15 Thread Kjetil Halvorsen
none. This in effect turns of the nvidia driver, and seems to keep emacs 23 hqappy. But why this strange Freedesktop.org messages above? --- Whivh repeat with an annoying freequency. \ Thanksd Kjetil Halvorsen __ R-help@r-project.org mailing list https

Re: [R] Interaction terms in logistic regression using glm

2010-04-29 Thread Kjetil Halvorsen
see comments below. On Wed, Apr 28, 2010 at 4:29 PM, Andrew Miles rstuff.mi...@gmail.com wrote: I recently became aware of the article by Ai and Norton (2003) about how interaction terms are problematic in nonlinear regression (such as logistic regression).  They offer a correct way of

Re: [R] Maps: Country coding

2010-04-27 Thread Kjetil Halvorsen
have a look at the cran pacvkage countrycode! Kjetil On Tue, Apr 27, 2010 at 5:30 PM, Ray Brownrigg ray.brownr...@ecs.vuw.ac.nz wrote: On Wed, 28 Apr 2010, Berthold Stegemann wrote: Hello, I am using the maps library for plotting maps. To build new geograhical sets such as Europe I use

Re: [R] Growth potential for open source math tools: 10 questions

2010-04-25 Thread Kjetil Halvorsen
I went to this site --- half of the questions are about how much do you want to pay for training courses Kjetil On Sun, Apr 25, 2010 at 5:25 PM, Tal Galili tal.gal...@gmail.com wrote: Maybe I missed something - but *why* should we do it? Contact

Re: [R] read.table behavior for Dates.

2010-04-16 Thread Kjetil Halvorsen
use the argument colClasses of read.table Kjetil On Fri, Apr 16, 2010 at 3:32 PM, Jeroen Ooms jeroeno...@gmail.com wrote: When read.table imports a table that includes a header called 'Date', it tries to recognize the date format. For example, if one imports this data from Yahoo finance,

Re: [R] tetrachoric correlations

2010-04-03 Thread Kjetil Halvorsen
Did you REALLY try RSiteSearch(tetrachoric) before sending your email? Kjetil On Fri, Apr 2, 2010 at 7:25 PM, HAKAN DEMIRTAS demir...@uic.edu wrote: Hi, Is there any R library/package that calculates tetrachoric correlations from given marginals and Pearson correlations among ordinal

Re: [R] histogram-like barplot? (or reverse?)

2010-04-03 Thread Kjetil Halvorsen
It might work to just say barplot(table(...)) Kjetil CC Or maybe even plot(table(...)) On Sat, Apr 3, 2010 at 5:14 PM, Bob O'Hara rni@gmail.com wrote: Hi, Nick! plot(.., type=h, lwd=5, lend=3, xaxt=n) axis(1, at=c(...)) is the way to start, after which you play with the code.

Re: [R] block matrices

2010-02-24 Thread Kjetil Halvorsen
see below. On Wed, Feb 24, 2010 at 12:56 PM, Gustave Lefou gustave5...@gmail.com wrote: Dear all, I do not know how to deal with block matrices in R. For example I have 3 matrices A, B and C. And I want to produce a new matrix of this form ( A B 0 ) ( 0 0 C ) where A, B and C are

Re: [R] performing the same commands on two different data sets

2010-02-09 Thread Kjetil Halvorsen
Did you try data-ID[[i]] instead of your data-ID[i]? Kjetil On Tue, Feb 9, 2010 at 11:19 AM, kayj kjaj...@yahoo.com wrote: Hi All, I would like to perform the same set of commands on the two different sets. I would to avoid writing the same set of command twice so I was wondering if

Re: [R] Call m file in R

2010-01-30 Thread Kjetil Halvorsen
fortune(reverse) On Sat, Jan 30, 2010 at 1:38 PM, Yong Zhang yz...@sfu.ca wrote: Hi, Does anyone know how to call a Matlab file (M-file) in R? Thanks! Yong        [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Lyapunov Discrete Time Equation

2010-01-29 Thread Kjetil Halvorsen
¿Did you do your homework before posting? ¿Did you read the posting guide? I do not know of anything in R, but searching the web gives a lot of info, there is a good article in wikipedia, and there are a lot of papers accessible. Code, which probably can be used with R, can be found on the

Re: [R] logistic regression based on principle component analysis

2010-01-07 Thread Kjetil Halvorsen
for an alternative (lasso) approach, look at the packages (CRAN) grpreg, grplasso, glmnet, penalized and certainly some others. Kjetil B H On Thu, Jan 7, 2010 at 2:06 PM, Steve Lianoglou mailinglist.honey...@gmail.com wrote: Hi, On Thu, Jan 7, 2010 at 11:57 AM, 江文恺 biology0...@hotmail.com

Re: [R] Multivariate Poisson GLM??

2010-01-05 Thread Kjetil Halvorsen
You could have a look at the VGAM (vector glm /gam models) at CRAN. Kjetil On Tue, Jan 5, 2010 at 5:59 PM, Corey Sparks corey.spa...@utsa.edu wrote: Dear R Users, I'm working on a problem where I have a multivariate response vector of counts and a continuous predictor.  I've thought about

Re: [R] R and Hierarchical Forecasting

2009-12-16 Thread Kjetil Halvorsen
I don't know of any prepackaged functions to do this, but I have done this with some success, using compositional methods: forecasting the total, and then forecasting the compositions.,, with compositional data analysis. The package compositions or robCompositions might be usefull. Or not. Kjetil

Re: [R] MLE for a t distribution

2009-12-14 Thread Kjetil Halvorsen
Brian Ripley sometimes on this list or elsewhere suggested to reparametrize as 1/k. I have used that with good results. But you should be aware that usually data contains very little information about k, so thhat if you do not have a lot more than 100 observations you coukld be out of luck. You

Re: [R] grep() exclude certain patterns?

2009-12-04 Thread Kjetil Halvorsen
Maybe, atleast for the most used functions, there should be a section in the .Rd file with name for newbies? Kjetil On Fri, Dec 4, 2009 at 6:18 PM, Peng Yu pengyu...@gmail.com wrote: On Fri, Dec 4, 2009 at 3:06 PM, Peng Yu pengyu...@gmail.com wrote: On Fri, Dec 4, 2009 at 2:35 PM, Greg Snow

  1   2   >