Re: [R] How to generate a smoothed surface for a three dimensional dataset?

2013-12-04 Thread Federico Andreis
Hi Jun, I'd for a local fitting by means of the loess() function. Assuming z is the third axis: x-runif(25) y-runif(25) z-runif(25) xyz.fit - loess(z~x+y,control=loess.control(surface='direct'),span=.5,degree=1) #tune parameters as you like z.predict -matrix(predict(xyz.fit,cbind(x,y)),5,5)

Re: [R] exponent function help??

2011-07-13 Thread Federico Andreis
if just integer exponentiation is enough, then I'd suggest: expf - function(x, n) { return(prod(rep(x, abs(n)))^sign(n)) } cheers. /federico On Wed, Jul 13, 2011 at 6:24 AM, Ben Bolker bbol...@gmail.com wrote: mousy0815 mousy0815 at gmail.com writes: I'm trying to make a function that

Re: [R] Syntax Highlightning and Editor for Linux

2010-07-23 Thread Federico Andreis
I have been trying emacs with ess, Kate, plain gedit..nothing really satisfied me.. but then I found a nice plugin for gedit: Rgedit ! it supports split screen with R terminal window (you can also personalize colour if, like me, do like to stick with old habits :) ), moreover gedit has a brackets

[R] DIF Analysis starting from a gpcm class object

2010-07-21 Thread Dr. Federico Andreis
by myself? and if so, how can I extract what I need from the model object? thanks to everybody /federico - Dr. Federico Andreis Università degli Studi di Milano-Bicocca, PhD Student MEB Department, Karolinska Institutet, Stockholm, Visiting PhD Student

Re: [R] Exporting NMDS distance matris to csv

2010-07-20 Thread Federico Andreis
On Tue, Jul 20, 2010 at 5:54 PM, Gavin Simpson gavin.simp...@ucl.ac.ukwrote: On Tue, 2010-07-20 at 08:24 -0400, Graves, Gregory wrote: If you submit these lines, you end up with variable vare.dis. I want to export vare.dis to csv. Stuck I am. Hi Yoda ;-) I want THIS on fortune() !

Re: [R] Multilevel IRT Modelling

2010-07-15 Thread Federico Andreis
Thanks Stuart, I already had some of those papers, will check the others! best Federico On Wed, Jul 14, 2010 at 9:05 PM, Stuart Luppescu s...@ccsr.uchicago.eduwrote: On Wed, 2010-07-14 at 04:31 -0700, Dr. Federico Andreis wrote: does anybody know of a package (working under Linux

[R] Multilevel IRT Modelling

2010-07-14 Thread Dr. Federico Andreis
Dear All, does anybody know of a package (working under Linux) for multilevel IRT modelling? I'd love to do this without having to go on WINSTEPS or the like.. thanks for the attention! Federico Andreis - Dr. Federico Andreis Università degli Studi di Milano-Bicocca, PhD Student MEB

Re: [R] Want to exclude a column when using sample function

2010-07-14 Thread Federico Andreis
I guess you could just use as an argument to sample data[,-c(1,2)] where 1 and 2 are id and pID50 column number On Wed, Jul 14, 2010 at 7:17 PM, Addi Wei addi...@gmail.com wrote: id pID50 apol a_acca_acid a_aro a_base a_count 1 mol.11 3.63 -0.882267 -0.527967

[R] Likelihood Optimization With Categorical Variables

2010-03-12 Thread Dr. Federico Andreis
other routine which could deal with categorical (along with non categorical) variables without for the aim of optimization? thanks in advance Federico Andreis Università degli Studi di Milano Bicocca, PhD Student MEB, Karolinska Institutet, Visiting PhD Student -- View this message in context