Displaying 20 results from an estimated 5000 matches similar to: "Slow computation in for loop"
2003 Apr 02
4
randomForests predict problem
Hello everybody,
I'm testing the randomForest package in order to do some simulations and I
get some trouble with the prediction of new values. The random forest
computation is fine but each time I try to predict values with the newly
created object, I get an error message. I thought I was because NA values
in the dataframe, but I cleaned them and still got the same error. What am
I
2002 Jun 18
2
Line width in graphs
Hi,
I'm using R to plot some data and associated linear models, and I was
wondering if there was a parameter to fix the line width in the graphs (for
axis, lines, ...) because I explored the associated help pages and could
not find it.
Thx in advance,
--
Ir. Yves Brostaux - Statistics and Computer Science Dpt.
Gembloux Agricultural University
8, avenue de la Facult? B-5030 Gembloux
2003 Apr 25
2
R compilation problem on Sun Solaris 2.5.1
Dear members,
I'm not very used with Unix systems, but I got an old Sun/UltraSparc
workstation running Solaris 2.5.1 and I tried to install R on it to able
able to do some batch R processing while working on my pc.
I downloaded and installed following required and recommanded programs
before installing R : perl 5.8.0, readline 4.3, gzip 1.3.5, zlib 1.1.4,
make 3.80, jpeg 6b, libpng 1.2.4
2004 Nov 30
3
Creating a factor from a combination of vectors
Dear list,
Here's a little problem I already solved with my own coding style, but I
feel there is a more efficient and cleaner way to write it, but had no
success finding the "clever" solution.
I want to produce a factor from a subset of the combination of two
vectors. I have the vectors a et b in a data-frame :
> df <- expand.grid(a=c(0, 5, 10, 25, 50), b=c(0, 25, 50,
2010 Sep 21
2
multiplying values in data frame by corresponding value in the first column
I am sure there is a simple solution to this... I have a column in a
data frame specifying a grouping (1, -1) for my observations, and need
to mutliply each observation in all the other columns of the data frame
by the corresponding value in the given column. I played with apply, and
saw some suggestions for sweep, but did not manage to get it working.
My table contains NAs....
Example of
2008 Mar 10
5
Passing extra parameters to functions called from Observers
Hi again,
When you have an ''obeserver'' setup as follows:
$(''myForm'').observe(''submit'', validateForm);
If a user submits the form the ''validateForm'' function is called and
is automagically passed the ''event'' to work with. This is fantastic!
But is there a way to pass another argument to the function?
2008 Jun 12
1
XML parameters to Column Headers for importing into a dataset
Dear List,
Do you know any way I can convert XML parameters into column headers. My
data is in a csv file with each row containing a xml form of data , and
multiple parameters (
<param1> data_val1 </param2> , <param2> data_val2 </param2> )
I want to convert it so each row caters to one record and each parameter
becomes a different column.
param1
2005 Oct 06
8
accessing extra request parameters
hi all,
how are other people passing and accessing ''get'' parameters from their apps?
what is the best way to do it?
ie:
www.example.com/controller/action/id/extra/extra2/ ??
or
www.example.com/controller/action/id/~extra/extra2/
or what ever....
are there built in methods for passing and accessing extra parameters?
thanks for your suggestions
-felix
2007 Nov 19
3
link_to and GET parameters
Hi,
I am trying to generate a link to external site with GET parameters
( in new window).
I tried following code, but it does not produce any parameters.
<%=link_to "Open New Page", "https://www.foo.com/page/", {:popup =>
true}, {:param1 => "value1", :param2 => "value2"}%>
and
<%=link_to "Open New Page",
2008 May 28
3
Plug-in support for Camping Apps
# camping_plugin.rb
# plug-in support for Camping Apps
# require ''lib/camping_plugin''
# override R helper method to your liking :-)
module Camping
module PluginHelpers
def R_with_module(c,*g)
p,h=/\(.+?\)/,g.grep(Hash)
g-=h
raise "bad route" unless u = c.urls.find{|x|
break x if x.scan(p).size == g.size &&
2006 Sep 15
3
How to catch a parameter that contains a full url
Hi
I need some help!
I have controller that I need to pass a full url (with its own
parametrs) as a parameter, e.g. I want to call my controller with:
/mycontroller/catchurl?url=http://somedomain.com/afile.jsp?param1=xx¶m2=yy
and in action "catchurl" in mycontroller.rb I would like to have
params[:url] to be
"http://somedomain.com/afile.jsp?param1=xx¶m2=yy"
2002 Nov 18
2
vector of center of
Hello
I have a vector gd of 279 values of diameter of limpets.
Using 'hist(gd, breaks=seq(10,60,5),plot=F)' I can obtain a vector of
10 centers of size-class ($mids).
But I'd like to work on a vector of 279 values being the mids (centers
of size-classes) corresponding to the respective 279 values in gd.
I looked in the different manuals and in archives of list but didn't find
2008 Jun 11
2
MLE Estimation of Gamma Distribution Parameters for data with 'zeros'
Greetings, all
I am having difficulty getting the fitdistr() function to return without
an error on my data. Specifically, what I'm trying to do is get a
parameter estimation for fracture intensity data in a well / borehole.
Lower bound is 0 (no fractures in the selected data interval), and upper
bound is ~ 10 - 50, depending on what scale you are conducting the
analysis on.
I read in the
2012 Jun 25
3
Loop for multiple plots in figure
Hello, I have longitudinal data of the form below from N subjects; I am
trying to create figure with N small subplots on a single page, in which
each plot is from only one subject, and in each plot there is a separate
curve for each value of param1.
So in this case, there would be four plots on the page (one each for Bob,
Steve, Kevin and Dave), and each plot would have two separate curves (one
2005 Mar 22
3
Lattice : factor levels in the margins
Hello !
I'm struggling again against lattice graprhics. ;) I'm trying to produce
a conditionnal xyplot with two conditionning factors (let's say A and
B). I want the levels of those factors (A1, A2, etc) to show in the
margins of the lattice plot, not in the strips between the panels.
A1 A2 A3
plot11 plot12 plot13 B1
plot21 plot22 plot23 B2
I managed to remove the
2002 Nov 22
3
simple test on slope of lm()
Hello
I want to compare the slope (let's say 'b') of a linear model obtained
with lm() to a theoretical value (let's say 'th').
To do so, I think I should compute a 't value' using
something like :
(b - 'th')/standard.deviation(b)
and then look at the p-value of this computed t.
I don't understand how to do this in a simple way, just using lm()
2011 Apr 24
2
Multi-dimensional non-linear fitting - advice on best method?
Hello!
I have a set of data of the form (x, y1, y2) where x is the
independent variable and (y1, y2) is the response pair. The model is
some messy non-linear function:
(y1, y2) = f(x; param1, param2, ..., paramk) + (y1error, y2error)
where the parameters param1, ..., paramk are to be estimated, and I'll
assume the errors to be normal for sake of simplicity.
If there were only one
2012 Feb 14
7
inherits from parametrized class
Hello
In is possible inherits from parametrized class??
For example i have base php52 class like this:
class linux::php52($pools, $extensions='''') inherits linux
{
......
}
and whants to inherit it like this:
class linux::php52::cluster inherits linux::php52
for cluster configuration (cluster stuff -f for example prevent php from
automatic startup), and
class
2012 Feb 02
3
MVC questions with rails
2007 Nov 01
1
structure data
Hello,
I have a quite simple question, I guess. I have a data frame and I would like
to process the data in several ways.
The processing is dependent on grouping (factors) and the parameter itself.
Meaning for parameter1 in the df, I would like to calculate the mean and sd
when grouping by factor1. But parameter2 might be different. I thought of a
structure like this:
group1
param1