Displaying 20 results from an estimated 400 matches similar to: "reading in tab delimited data in a loop"
2001 Apr 09
4
fastest R platform
Hello, everyone! I picked up R several months ago and have adopted it
as my choice for statistical programming. Coming from a Java
background, I can honestly say that R is not only free, it is better
tha S-plus: the lexical scope in R makes it very simple to simulate
Java's object model. For this, I encourage everyone to read the artcle:
Robert Gentleman and Ross Ihaka (2000) "Lexical
2010 Apr 13
0
Error using reshape method
To be fair I don't really understand what the error is telling me so I don't
know how to correct it.
I'm trying to reshape my data so that I do repeated measures ANOVA on it.
The warning message: "Error in d[, timevar] <- times[1L] : subscript out of
bounds"
The program:
library(QRMlib)
library(Hmisc)
ss<-5
mu<- c(0,2,3,12)
mu2<- c(0,2,10,20)
2004 Aug 09
0
Need help on this problem!
Hi everyone,
I have posted a similar question to this list, but I don't
get a reply. I really want to solve this problem, so I
post it again...
I am trying to use R to fit some mixed-effects models for
a nested data. The data is a simulated data with 111
subjects. Each subject has 6 waves' data. Below are the
first two subjects' data :
> simu1[1:12,]
Grouped Data: gf ~ age |
2004 Jul 30
0
a question about nlme
Hi,
Sorry to bother those who are not interested in the
question.
I am using R to run a multiphase mixed-effects model. I
simulated a data set by using the following model. And now
I want to use R to estimate the parameters and compare the
results with the true values.
The equations of the models are as below:
gf[ij]=b0[i]+b1[i]*age[ij]+b2[i]*max(0,(age[ij]-tau[i]))+e[ij]
b0[i]=b00+e[i0]
2004 Jul 28
1
a question about using nlme
Hi,
I am using Splus to run a multiphase mixed-effects model.
The quations of the models are as below:
gf[ij]=b0[i]+b1[i]*age[ij]+b2[i]*max(0,(age[ij]-tau[i]))^2+e[ij]
b0[i]=b00+e[i0]
b1[i]=b10+e[i1]
b2[i]=b20+e[i2]
tau[i]=tau+e[i3]
i: 1,2,...,100 subjects
j: 1,2,...,6 occasions
The main scripts of Splus is:
simu1<-groupedData(gf~age|id)
simu.nlme<-nlme(gf~(b0 + b1 * age + b2 *
2009 Sep 24
2
more strange behavior of Revolution R 1.3.0
It runs more than twice as slowly using 8 core than using a single core
in inverting large matrix. Tested on 8 core Windows XP 64 machine.
> n = 1000
> n.simu = 100
> func1 = function()
+ {
+ x = rnorm(n*n)
+ dim(x)=c(n,n)
+ y = solve(x)
+ }
>
> setMKLthreads(1)
> system.time(for(i in 1:n.simu) func1())
user system elapsed
69.48 2.42 71.91
2006 Mar 21
9
IE flakiness?
I set up a simple BlindUp and BlindDown div that works seamlessy in Firefox
but doesn''t work as smoothly in IE. When blinding down, the whole div
flashes and then Blinds down. The same thing when blinding up. Is this
something that is fixable?
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2003 Sep 29
2
problem in integrating C routine with R on windows XP
Hi All,
I a C function code, which has been successed in integrating
with Splus on Unix. Now I want to move it on windows.
So I want to integrate this C function with R on windows XP.
I download tools.zip and saved it in c:\bin directory,
download MinGW and saved it in c:\MinGw directory,
download Perl and saved it in c:\Perl directory.
My path is set as:
2010 Aug 22
5
Help me... how to convert amchart to pdf
Hi
Guys
I need help.. I want to making 1 controller for covert html to pdf.. But
that html have amchart (swf). When I tried convert, the swf not loadded...
Any body can help me Please????
--
Senior Rails Developer
Anton Effendi - Wu You Duan
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send
2008 Jul 01
1
Simulate from a GAM model
Does anybody have any suggestions on how I might simulate from fitted GAM
model? I am using the gam function in the mgcv package to fit a variable
coefficient model like the following from the examples. I would like simulate
based on the fitted model like the simulate function in the stats package does
for lm models.
library(mgcv)
set.seed(10)
## simulate date from y = f(x2)*x1 + error
dat
2010 Feb 15
1
get current window (device) size
Dear R-listers,
I am writing a function that will generate a simple plot for the user . The size of the window (that contains the plot) may not be what the user wants.
Supposing the user adjusts the window to a size of her/his choice, I would like to be able to save the new window size and specify the plot to be of this new window size when the user calls my function again. My question is
2006 Mar 07
12
Edge Rails doesn''t work for my app
My app was fine before "rake freeze_edge" but after, I can no longer boot up
webrick.
I''m on Win Xp MySql backend and this is what I get
=> Booting WEBrick...
./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/ker
nel/agnostics.rb:7:in ``'': Exec format error - rake tmp:create
(Errno::ENOEXEC)
from
2010 Sep 20
2
For Your Own Info: Rails 2.3.2 is incompatible with Cucumber (0.8.5), Capybara (0.3.9) and Selenium-webdriver (0.0.17)
Railers,
I am running an application on Rails 2.3.2. For some reason within our
organization, we wish to remain on this version of Rails. For BDD/Testing,
we use Cucumber. So I installed Cucumber (0.8.5), Capybara (0.3.9) and
Selenium-webdriver (0.0.17). But when I run Cucumber on any feature, I get
an error saying *" wrong number of arguments (2 for 1) (ArgumentError)"*,
(Check here
2003 Mar 14
2
odd behaviour of 'while'?
Hi all,
I have written a program which performs some data simulation, model fitting (to the simulated data) and then it will save the parameter estimates from each loop into a matrix for later use. Because convergence will not be met in some sets of the simulated data, I have used a 'while' instead of a 'for' loop for the job. With a 'for' loop I was not able to turn
2003 Mar 24
1
how to show a section of a matrix neatly (or row by row) that satisfies some condition
Hi all,
I want to show the rows of a matrix (100x3) of which some of its elements satisfy a certain condition. In particular, how can I display the 2 rows of my matrix one after the
other and not all all elements of column 1 first, then column 2 and so on. See the following.
> finest[finest[,1] > 10^3]
[1] 4.960632e+13 3.612619e+04 7.668204e+12 1.001911e+04 8.886153e-01
[6]
2010 Aug 31
6
ajax and partials
Hello all,
I am still very new to programming and wonder if I could get some help.
I have tried to figure this out myself but still having trouble with
some of the concepts. I’ll do my best to explain the problem and
include the code. I may be completely off track, so ANY direction
offered would be deeply appreciated.
I have a question model / object which consists of a question, answers,
and
2007 Apr 04
1
fsck.ext3 reporting large file I cannot find
I am checking a file system (ext3) as shown below. It is actually a fresh file
system, as I had deleted all partitions and created an ext3 file system. But
when I run the check with the verbose option, it says I have one large file.
Am I missing something here, or is it odd that I cannot find this large file it
is reporting? I reviewed some documentation on ext3 file systems, and
experimented
2009 Sep 30
5
A rails plugin to generate css sprite image automatically
Hi guys,
I have written a rails plugin/gem to generate css sprite image
automatically.
The project repository is here: http://github.com/flyerhzm/css_sprite
It is based on RMagick and you need only define a rule from what
source images to a destination image, as follows:
forum_icon_vertical.gif: # destination image file
sources: # source image file list
- good_topic.gif
2007 Mar 29
7
rrdgraphs?
Anyone using the rrdgraph report on the puppetmaster on Debian stable? I''m
trying to get this working and not getting far. I even took rrdtool and
librrd0-dev from backports and I still get the same problem. It seems that
the rrdfiles are being somewhat created, but nevertheless, the puppetmaster
isn''t happy and keeps spewing:
err: Report rrdgraph failed: Could not create
2004 Oct 16
7
sapply and loop
Dear all,
I am doing 200 times simulation. For each time, I generate a matrix and
define some function on this matrix to get a 6 dimension vector as my
results.
As the loop should be slow, I generate 200 matrice first, and save them into
a list named ma,
then I define zz<-sapply(ma, myfunction)
To my surprise, It almost costs me the same time to get my results if I
directly use a loop