Displaying 20 results from an estimated 1100 matches similar to: "Data frame and function that requires vector as input"
2008 Feb 20
1
R square for Monotone regression
I'm using the monoreg function (with weights) from the fdrtool package.
How can I calculate the R square for this type of regression?
Thanks for your help,
Thierry
--
View this message in context: http://www.nabble.com/R-square-for-Monotone-regression-tp15580803p15580803.html
Sent from the R help mailing list archive at Nabble.com.
2009 Oct 19
1
overloading base function
Hello,
I am trying to write an R package for doing analysis of speaker
recognition systems. The big thing in this line of research is a
DET-plot (detection Error Trade-off, a ROC plot with qnorm() warped
axes). My approach has been to make a class "det" and also a
function "det()" that will prepare the data into the right class.
Now loading the library doesn't like me
2010 Dec 22
0
fdrtool help
Hello,
I am using fdrtool(x, statistic="pvalue") where x is a vector of chisq
p-values.
I can get this command to work with some x, but not with others.
When it does NOT work, I get the following screen output:
> fdrtool(pvals$Chi2.pval, statistic="pvalue")
Step 1... determine cutoff point
Step 2... estimate parameters of null distribution and eta0
Step 3... compute p-values
2013 Apr 25
0
fdrtool qvalues
Hi,
I've just started using R and fdrtool, and I'm not sure if the qvalues I'm receiving back are accurate. I performed fdrtool on pvalues obtained from a two way anova on proteomics data. So I have 266 data values (protein spots) for two factors (ft, vr, and the interaction) for each biological sample.
One of the two factors (vr) has a highly significant effect with 119 protein
2013 Jan 17
2
error installing KEGGSOAP
Hi, I am new to bioconductor, trying to install KEGGSOAP package, but got warnings() when installing and error message when trying to load the package, can anyone suggest what went wrong?
many thanks
John
> source("http://bioconductor.org/biocLite.R")
Bioconductor version 2.11 (BiocInstaller 1.8.3), ?biocLite for help
> biocLite("KEGGSOAP")
BioC_mirror:
2006 Sep 18
1
Cochrans Q Test
Hi!
I would like to conduct a Cochran`s Q Test in R, but have not found any
suitable function.
My first idea was: J <- as.table(matrix(c(6,16,2,4),ncol=2, dimnames =
list("C" = c("Favorable","Unfavorable"),"Drug A Favorable"=c("B
Favorable","B Unfavorable"))))
L <- as.table(matrix(c(2,4,6,6),ncol=2, dimnames =
2012 Sep 13
5
random sampling inside a dataset
Hi all,
I am wondering if do exist a function in R that allow me to sample or
choose randomly the rows (i.e., samples) inside a given matrix.
Thank you very much in advance.
Cheers,
--
Gian
[[alternative HTML version deleted]]
2007 Jun 22
5
assert_select trying to verify the presence of a textarea
Hello,
One of my functional tests looks like this:
def test_presence_of_free_text
profile = Profile.find :first
post :edit, {:id => profile.id}
assert_select "textarea", :name => "record[free_text_ec]"
end
The test results in a failure, because the element cannot be found.
I''m pretty sure the element should be there, and I''ve tried
2006 Aug 09
7
function before_save
Hi everybody
I would like a function as the "before_save" method in the model. But it
must be the opposite. When I take out data from the database through the
model, I want to call a function before the data are available in the
controller.
Can anyone help me?
---- >>>> thx <<<< ----
--
Posted via http://www.ruby-forum.com/.
2014 Mar 05
1
Running configure from subdirectory of source tree
Hello everyone,
I would like to seek your advice regarding a build (or rather "configure")
problem I am running into. For reference, tests are all relative to a build
from a 1.8.26.0 tarball, on Debian Wheezy.
I would like to understand if it is possible, and if any of you have tried,
to build Asterisk from a subdirectory of the source tree, i.e., from a
clean source tree
# mkdir
2006 Jun 12
2
conditional validation
Hi how can I validate a field only if another field is set to a specific value?
I tried to use
validates_length_of :fieldname, :maximum => 100, :if =>
:otherfieldname == ''myvalue''
But doesn''t work
Thanks
Paolo
2013 Mar 14
2
how to import DNA sequences in R
Dear all,
I was wondering how to read DNA sequences in R, is there a specific
function and/or a specific package for that?
Thank you very much in advance,
Gian
**
[[alternative HTML version deleted]]
2013 Mar 14
3
column and line graphs in R
Hi all,
I would love to plot my data with R. I have abundance and frequency of fungal
taxonomic data that should be plotted in the same graph. In Microsoft Excel
is that possible but the graphic result is, as always, very poor. Is there
a function that may let me plot these data in R?
I have a matrix made of two columns, on is the relative abundance and the
other is the relative frequency for
2012 Feb 16
2
help with e+01 number abbreviations
Dear List,
I will appreciate any advice regarding how to convert the following numbers
[I got in return by taxondive()] in numeric integers without the e.g.
6.4836e+01
abbreviations.
Thank you very much in advance,
Gian
> taxa_dive
Species Delta Delta* Lambda+ Delta+ S
Delta+
Nat1 5.0000e+00 6.4836e+01 9.5412e+01 6.7753e+02 8.7398e+01
436.99
Nat2
2013 Nov 26
1
Zabbix + samba4
Hello there,
I'd like to know if there are some way to gather statistics from samba4,
like quantities of active users and other things that it can offer then
use it in zabbix to generate some graphs and triggers.
I can do somethings in smbstatus of samba3, but i couldn't find anything
like this in samba4.
is there anybody here who could do it?
Thank's a bunch!
--
*Gian Luca
2012 Feb 23
1
help - history()
Hi Members,
Do exist the possibility to delete a command line into the history?
Fo example. If I' ve typed a line code that is wrong, Can I delete it from
the hostory in reason to do not save it in the .Rhistory file?
Thanks for helping,
Gian
[[alternative HTML version deleted]]
2013 Sep 26
1
Installing Rcplex
Hi,
I have tried to install the R package Rcplex on windows xp without success. I have only cplex_studio124.win-x86-32 version.
I have modified the makevars.win file as indicated in the installation guide ( http://cran.r-project.org/web/packages/Rcplex/INSTALL ), then I zipped the whole folder to order an installation from a zipped file (utils :menuInstallLocal())
The message I had is
file
2007 Jun 25
1
Functional tests and active scaffold: unexpected assertion failure.
Hello,
I''m writing a functional test for a controller that uses active
scaffold.
def test_presence_of_field
login_as(:peter)
profile = Profile.find :first
get :edit, {:id => profile.id}
assert_response 200
assert_select "textarea#record_free_text_ec"
end
I was expecting the first ''assert 200'' to give me a green bar,
but added it for
2010 Jul 16
1
garbage collection & memory leaks in 'R', it seems...
Hello developers,
I noticed that if I am running 'R', type "rm(list=objects())" and
"gc()", 'R' will still be consuming (a lot) more memory than when I then
close 'R' and re-open it. In my ignorance, I'm presuming this is something
in 'R' where it doesn't really do a great job of garbage collection... at
least not nearly as well as
2007 Oct 23
2
Using a data frame in a function call
Hi,
I am writing a basic function to extract the z scores for some linear
regression coefficients:
zscore<-function( y, x) {
lm<-lm( y ~ x )
z <- coef(lm)/sqrt(diag(vcov(lm)))
return(z)
}
I would like to pass a dataframe to the function as a argument so the
function call changes from
zscore(df$y1,df$x1)
to
zscore(y1,x1,data=df)
but I am not sure how to reference the data