Displaying 20 results from an estimated 1000 matches similar to: "function optimization: reducing the computing time"
2006 Mar 30
1
warning message in hand-made function
Dear Rusers,
I tried to implement a function comparing mean scores between one
subject (the patient) and a group a control subjects. The function
returns attended results, but I also obtained the following warning :
Warning message:
the condition has length > 1 and only the first element will be used
in: if (substr(fp, 1, 1) == "<") fp else paste("=", fp)
Maybe
2005 Apr 28
1
riwish() problem
R users-
In moving from R 2.0.0 to R 2.1.0 in Windows, I have encountered a problem
with the "riwish" command in the package "MCMCpack". I've searched the
documentation and can't seem to figure it out. For example:
Define a matrix:
> lam <- matrix(c(.00233,-.00057,-.00057,.00190),2,2)
and then use the riwish command to generate a random inverse-Wishart
2012 Mar 01
1
Parameterization of Inverse Wishart distribution available in MCMCpack and bayesm libraries
Hello Everyone
Both the MCMCpack and the bayesm libraries allow us to make draws from the
Inverse Wishart distribution.
But I wanted to find out how exactly is the Inverse Wishart distribution
parameterized in these libraries.
The reason I ask is the following:
Now its generally standard to express Inverse Wishart as IW(0.5 * DOF,0.5*
Scale). (DOF-> Degree of freedom, Scale -> Scale
2012 Jan 15
1
Trouble installing packages on R2.14.1
Hi,
Have just recently downloaded R version 2.14.1 and can't install
packages (Code below), 32bit version on windows. From the looks of
things access is the problem but I don't know where to start, would it
be my system that is the problem or is the repository not set up for the
latest version yet?
Any ideas on how to rectify the problem would be greatly appreciated
Cheers
>
2008 Mar 04
2
Matchers tutorial ...
I am looking for a good a - z matchers tutorial . Anyone got a url
for one?
Thanks
Anthony Broad-Crawford
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080303/fd652444/attachment-0001.html
2011 Mar 01
2
regression with categorical nuisance variable
Hi,
I am new to R, so I am unsure of the formula to set up this analysis.
I would like to run a linear model with a continuous dependent
variable (brain volume) and a continuous independent variable (age)
while controlling for a categorical nuisance variable (gender).
Age and brain volume are correlated.
There are no gender differences in age but there are significant
gender differences in brain
2001 Mar 27
1
Mounts on Mac, Linux but not Win98 - bad password
I am trying to set up Samba for the very first time in my life on a SlackWare
Linux 7.1 system. I'm using kernel 2.4.2, and the Samba 2.0.7 that comes
precompiled with Slackware 7.
I'm only moderately clueful at this point, but I have experience with other
Linux and networking stuff. I can build Samba from sources if you think that
would help.
I ran through the diagnostic tests given
2009 May 07
1
error using lapply with oneway_test (coin package)
Dear expeRts,
I would like to use a oneway_test (from package coin) to test whether
two groups differ on various variables. The variables are encoded
within a data frame. Unfortunately, I obtained an error, that I don't
understand. Could you please help me ?
Example:
library(coin)
y <- as.data.frame(matrix(rnorm(200), ncol=2))
group <- as.factor(unif(100))
lapply(y,
2006 Mar 02
1
finding ncp for t distribution
Dear R-users,
I am wondering whether R implements a function returning the non central
parameter of a t distribution (equivalent of the TnoncT function from
SAS), given /x/ a value from a t distribution, /df /the degrees of
freedom and /p/ the probability of x under this distribution.
Thanks a lot,
Matthieu
--
Matthieu Dubois, /Ph.D/. /Student/
Cognitive Neuroscience Unit, UCL,
2013 Jan 28
2
Variability Plot For Toray Microarray Data
Is there any package that allow you to perform "MA plot" like graph
for Toray microarray data?
Unlike Affymetrix CEL file which contain 2 values (R and G),
Torray raw data only contain 1 value.
MA-plot is Affymetrix specific which usually available for in (limma)
package.
P. Dubois
[[alternative HTML version deleted]]
2006 Apr 11
1
error in which(): recursive default argument reference
Dear useRs,
I have written a very simple function to compute some probabilities
on words (function is below). The function includes a which()
statement applied to a vector of characters (word.split): sapply
(word.split, function(x) which(letters==x)). This statement worked
as expected when used outside the global function :
> word <- "hello"
> (word.split <-
2008 Mar 03
1
Rspec and plugins
I have a question regarding best practices around module and plugin
testing for rails applications. In our application we have created
several plugins that extend ActiveRecord::Base with class methods,
that when invoked in a model add behavior to that model. For
example ...
class SomeModel < ActiveRecord::Base
adds_some_cool_behavior
adds_another_wicked_sweet_behavior
end
My
2005 Jun 09
1
The Sims won't run with debugger
G'day,
I'm using a cvs version from a few days ago, and I've just installed The
Sims and its Livin' Large and House Party extensions with minimal fuss (the
icons were missing in the first setup/autorun screens).
Trying to run the program, it displays a dialog with the title "A debugger
has been detected" and the text "Unload the debugger and try again".
So,
2008 Oct 13
2
Support for CAF in flac command-line?
Michael Crawford wrote:
> Unlike MP3, one
> cannot even distribute the binary of an Open Source player.
Even distributing an MP3 software player requires the payment
of license fees:
http://www.mp3licensing.com/royalty/software.html
Erik
--
-----------------------------------------------------------------
Erik de Castro Lopo
2004 May 11
2
cwrsync strange path in error message
Hi,
I am running cwrsync.
2004/05/11 [93] rsync error: some files could not be transferred (code
23) at /home/lapo/packaging/tmp/rsync-2.5.7/main.c(383)
I am uncertain as to what this path statement is about in the above error
message.
/home/lapo/packaging/tmp/rsync-2.5.7/main.c(383)
Thanks,
Pat
--
Patricia Palumbo
DuBois & King, Inc.
ppalumbo@dubois-king.com
802-728-4113 | ext 322
2006 Feb 24
3
Summarize by two-column factor, retaining original factors
I am having trouble doing the following. I have a data.frame like
this, where x and y are a variable that I want to do calculations on:
Name Year x y
ab 2001 15 3
ab 2001 10 2
ab 2002 12 8
ab 2003 7 10
dv 2002 10 15
dv 2002 3 2
dv 2003 1 15
Before I do all the other things I need to do with this data, I need
to summarize or collapse the data by name and year. I've
2009 Aug 26
2
Linux and the APC Back-UPS ES
Dear Christian,
thanks for writing. I am no longer active in driver development, so I
am forwarding your question to the NUT user list. The people on the
list are very helpful.
Best wishes, -- Peter
Christian Dubois wrote:
>
> Hi there, I found this document on the internet and it was very useful
> for me (http://www.mscs.dal.ca/~selinger/ups/backups.html), thank you.
>
> I
2010 Dec 19
2
Problem with requiring client certificates for external connections
Folks,
I'm trying to configure my dovecot installation to require client
certificates for external/Internet connections, while still allowing my
local network to not need certificates.
This configuration is for Dovecot 2 (2.0.8 in Fedora 14), and I've
tried to use the "remote" block to give different definitions for my
local network vs the defaults. While most options seem to
2007 Mar 08
1
Drawing sub-samples
Folks,
I have a dataframe (snippet shown below).
> demo.df[1:10, 1:6]
dirn county year exp exp.wave r3
1 43901 Cuyahoga 2006 0 0 56
2 49098 Pickaway 2006 0 0 77
3 44164 Portage 2006 0 0 85
4 44610 Wayne 2006 1 1 76
5 45120 Wayne 2006 0 0 82
6 49593 Scioto 2006 1 1 89
7 46516 Crawford 2006 0 0
2012 Feb 05
1
Simulating from a Normal Inverted Wishart distribution
Hello everyone
I was wondering how would one simulate from a Normal Wishart Distribution
in R.
A normal inverted Wishart distribution is denoted by NIW (M,C,d,S), where
X/(Sigma) ~ N( M,C,(Sigma) ) -> a matrix normal distribution, (Sigma) ->
column dispersion matrix
(Sigma) ~ IW (d,S) -> inverted Wishart distribution
Thanks a lot !
Best
Shantanu
[[alternative HTML version