Re: [R] About calculating average values from several matrices

2017-05-09 Thread Charles Determan
If you want the mean of each element across you list of matrices the following should provide what you are looking for where Reduce sums all your matrix elements across matrices and the simply divided my the number of matrices for the element-wise mean. Reduce(`+`, mylist)/length(mylist) Regards,

Re: [R] About calculating average values from several matrices

2017-05-09 Thread Charles Determan
le type now. Thanks again. > > > On Tue, May 9, 2017 at 9:04 AM, Charles Determan > wrote: > >> If you want the mean of each element across you list of matrices the >> following should provide what you are looking for where Reduce sums all >> your matrix elements

[R] [R-pkgs] gpuR 2.0.0 released

2017-10-20 Thread Charles Determan
Dear R users, I am happy to announce the most recent version of gpuR has been released. There are several new enhancements to the package including the ability to use user written OpenCL kernels. A full list of changes from the NEWS are shown below. API Changes: 1. deviceType, gpuInfo, cpuInfo

Re: [R] Where are the PCA outputs?

2016-09-12 Thread Charles Determan
Hi Nick, "prcomp" returns an object of class "prcomp" so when you simply 'print' the object it gets passed to the "print.prcomp" function. If you want to see all the objects you should assign the results to an object. Regards, Charles On Mon, Sep 12, 2016 at 7:56 AM, WRAY NICHOLAS wrote: > Hi

Re: [R] regexpr - ignore all special characters and punctuation in a string

2015-04-20 Thread Charles Determan
You can use the [:alnum:] regex class with gsub. str1 <- "What a nice day today! - Story of happiness: Part 2." str2 <- "What a nice day today: Story of happiness (Part 2)" gsub("[^[:alnum:]]", "", str1) == gsub("[^[:alnum:]]", "", str2) [1] TRUE The same can be done with the stringr package if

Re: [R] feature selection

2015-04-20 Thread Charles Determan
Although I am sure many here would be happy to help you your question is far too vague. There are many methods for feature selection. You should review the literature and see what would work best for you or consult a statistician. Once you have selected a method and began an initial attempt at t

Re: [R] Package Build Recommendations

2015-05-06 Thread Charles Determan
Hi Glenn, Generally data files are stored in the 'data' directory. If you visit Hadley's R packages site on the data page (http://r-pkgs.had.co.nz/data.html) this is described quite clearly. You can use the devtools package functions like `use_data` to have data files properly stored in your pac

Re: [R] compiling R with tuned BLAS

2015-05-22 Thread Charles Determan
Which OS are you using (Windows, Linux (distro), Mac)? When you mention .so files I tend to assume you are using a Linux system. If you are using ubuntu, changing the BLAS used by R is relatively trivial by using 'update-alternatives'. More detail is provided at the following link: http://www.st

Re: [R] Path analysis

2015-05-26 Thread Charles Determan
Given that your problem primarily focuses on a biological context you probably would have better luck with bioconductor (www.bioconductor.org). Regards, Charles On Tue, May 26, 2015 at 12:43 AM, Alberto Canarini < alberto.canar...@sydney.edu.au> wrote: > Hi there, > > As I'm approaching path ana

Re: [R] An Odd Request

2015-05-29 Thread Charles Determan
If you are primarily interested in making your R analyses in to a website you should look in to the 'Shiny' package. It makes generating web pages very easy. Here is a link to the Shiny Gallery providing some examples ( http://shiny.rstudio.com/gallery/). Regards, Charles On Fri, May 29, 2015 a

Re: [R] Help on Neural Network package

2015-06-02 Thread Charles Determan
You model is reaching the error threshold otherwise you would be receiving an 'actual' error message. You model is just converging very quickly. If you want to see the error reducing, change lifesign="minimal" to lifesign="full" and set the lifesign.step=1 to make it very verbose for this model.

Re: [R] Rcpp cpp11 and R CMD build

2015-06-24 Thread Charles Determan
Hi Edwin, If you look at the build output you will notice that the C++11 compiler flag is not being used. I just created a small package using Rcpp11 and your function and it worked without a problem. I can't give you a specific reason without seeing your package but there are some possibilities

Re: [R] Rcpp cpp11 and R CMD build

2015-06-24 Thread Charles Determan
temRequirements. I guess it could be > useful to add this to the example given here: > http://gallery.rcpp.org/articles/simple-lambda-func-c++11/ > > Cheers, Edwin > > On Wed, 24 Jun 2015 at 17:50 Charles Determan > wrote: > >> Hi Edwin, >> >> If you look

Re: [R] modifying a package installed via GitHub

2015-07-20 Thread Charles Determan
Steve, You are able to work with a github package the same as any github repo. If you clone the repo: git clone https://github.com/user/repo.git If using RStudio it is simple enough to create a new project in that new directory (if the .Rproj file does not exist, otherwise open that). Once you

Re: [R] modifying a package installed via GitHub

2015-07-20 Thread Charles Determan
will > overwrite what I have done locally. Do I have that right? > > Thanks again for your thoughtful advice! > > > Steve > > On Mon, Jul 20, 2015 at 5:52 AM, Charles Determan > wrote: > >> Steve, >> >> You are able to work with a github package the sa

[R] FPMC?

2018-08-14 Thread Charles Determan
Greetings R users, I recently came across an interesting paper regarding recommender systems. The particular method defined in the manuscript was Factorizing Personalized Markov Chains. You can find the article in question here ( http://www.ra.ethz.ch/cdstore/www2010/www/p811.pdf). I am curious

Re: [R] Calculate the area under a curve

2015-08-24 Thread Charles Determan
Hi Carsten, This list is meant to help you solve specific coding problems. What have you tried? A quick google search will provide several packages including caTools, ROCR, AUC, pROC. Look in to some of them, try them out and report back if you have problems 'using' a function instead of just a

Re: [R] how to find the mean and sd :(

2015-09-11 Thread Charles Determan
massmatics, You are trying to take the mean/sd of an entire data.frame and therefore you receive an error. You must do some form of subset and take the mean of the 'breaks' column. This can be done a few ways (as with almost anything in R). AM.warpbreaks2 <- subset(AM.warpbreaks, breaks <= 30)

[R] [R-pkgs] New package: gpuR

2015-11-30 Thread Charles Determan
tains a wiki to help with installation. Although it must be compiled, it is able to be installed on Linux, Mac OSX, and Windows platforms. I welcome any comments, issues (please submit on the github), and of course additional contributions. Regards, Charles Determan [[alterna

[R] GPU package crowd-source testing

2016-02-09 Thread Charles Determan
Greetings R users, I would like to request any users who would be willing to test one of my packages. Normally I would be content using testthat and continuous integration services but this particular package is used for GPU computing (hence the cross-posting). It is intended to be as general as

Re: [R] GPU package crowd-source testing

2016-02-11 Thread Charles Determan
n, thanks to all for taking the time to try out this package. Regards, Charles On Tue, Feb 9, 2016 at 12:20 PM, Charles Determan wrote: > Greetings R users, > > I would like to request any users who would be willing to test one of my > packages. Normally I would be content using testt

Re: [R] RSNNS neural network

2016-03-03 Thread Charles Determan
Unfortunately we can only provide so much help without a reproducible example. Can you use a dataset that everyone would have access to to reproduce the problem? Otherwise it is difficult for anyone to help you. Regards, Charles On Tue, Mar 1, 2016 at 12:35 AM, jake88 wrote: > I am new to R a

[R] [R-pkgs] gpuR 1.1.0 Release

2016-03-18 Thread Charles Determan
Dear R users, The next release of gpuR (1.1.0) has been accepted to CRAN ( http://cran.r-project.org/package=gpuR). There have been multiple additions including: 1. Scalar operations for gpuMatrix/vclMatrix objects (e.g. 2 * X) 2. Unary '-' operator added (e.g. -X) 3. 'slice' and 'block' methods

Re: [R] Fit a smooth closed shape through 4 points

2016-03-21 Thread Charles Determan
Hi Allie, What is you goal here? Do you just want to plot a curve to the data? Do you want a function to approximate the data? You may find the functions spline() and splinefun() useful. Quick point though, with so few points you are only going to get a very rough approximation no matter the m

Re: [R] TensorFlow in R

2016-04-01 Thread Charles Determan
Hi Axel, Looks like the only thing right now is rflow ( https://github.com/terrytangyuan/rflow). It appears to simply wrap around the python bindings. I am not aware of any others. Be interesting to keep an eye on. Regards, Charles On Fri, Apr 1, 2016 at 11:32 AM, Axel Urbiz wrote: > Hi Al

Re: [R] A Neural Network question

2016-04-19 Thread Charles Determan
Hi Phil, I don't think this is the correct list for this. You question has nothing to do with R specifically which is the purpose here. I suggest you pursue other help lists related to neural networks to try and find someone to assist you. Regards, Charles On Sat, Apr 16, 2016 at 2:08 AM, Phil

[R] openssl package install error

2016-05-06 Thread Charles Determan
I am trying to install 'openssl' on ubuntu 14.04. I already of libssl-dev and libcurl4-openssl-dev installed. But when I try to install I get a bunch of errors complaining about 'unknown type 'u_char''. Thoughts? Excerpt of output: Found pkg-config cflags and libs! Using PKG_CFLAGS= Using PKG_

Re: [R] Converting a list to a data frame

2016-11-04 Thread Charles Determan
Hi Kevin, There may be a more elegant way but the following do.call and lapply should solve your problem. do.call(rbind, lapply(seq(length(x)), function(i) data.frame(set=i, x[[i]]))) Regards, Charles On Fri, Nov 4, 2016 at 7:37 AM, Kevin E. Thorpe wrote: > There is probably a very simple ele

[R] [R-pkgs] gpuR 1.2.0 released

2016-12-22 Thread Charles Determan
Dear R users, I am happy to announce the most recent version of gpuR has been released. There are several new enhancements to the package including: 1.Automatically detect available SDK on install if available 2.Simplified installation to build OpenCL ICD when have OpenCL driver but no

Re: [R] Multi-GPU "Yinyang" K-means and K-nn for R

2017-02-23 Thread Charles Determan
Hi Vadim, I would be happy to explore helping you out with this. I am quite active in development for GPU use in R. You can see my work on my github ( https://github.com/cdeterman) and the group I created for additional packages in development (https://github.com/gpuRcore). I believe it would b

Re: [R] DeepNet package - how to add hidden layers?

2015-01-19 Thread Charles Determan Jr
hz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Dr. Charles Determan, PhD Integrated Biosciences [[alternative HTML version deleted]] _

Re: [R] Neural Network

2015-01-21 Thread Charles Determan Jr
er? > please help me to write the codes. > many thanks. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and pr

Re: [R] Neural Network

2015-01-22 Thread Charles Determan Jr
> 2) Is it possible to predict the Eutro. by these variables? > > > Many thanks for your help. > Regards, > > > > > > > > > On Wed, 1/21/15, Charles Determan Jr wrote: > > Subject: Re: [R] Neural Network > To

Re: [R] ggplot courses?

2015-01-22 Thread Charles Determan Jr
e > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Dr. Charles Determan, PhD Integrated Biosciences [[alternative HTML version deleted]] __ R-help@r-proje

Re: [R] Neural Network

2015-01-26 Thread Charles Determan Jr
of Chlorophyll a can make the > Eutrophication in lake along with other algeas. > So I think they are dependent variables. > Regards. > > > > > On Thu, 1/22/15, Charles Determan Jr wrote: > > Subject: Re: [R] Neural Network

Re: [R] missing in neural network

2015-03-24 Thread Charles Determan Jr
Hi Soheila, You are using the formula argument incorrectly. The neuralnet function has a separate argument for data aptly names 'data'. You can review the arguments by looking at the documentation with ?neuralnet. As I cannot reproduce your data the following is not tested but I think should w

Re: [R] missing in neural network

2015-03-24 Thread Charles Determan Jr
hidden = 4, lifesign = > "minimal", linear.output = FALSE, threshold = 0.1) > > I saw this error > > Error in neurons[[i]] %*% weights[[i]] : non-conformable arguments > > :(:(:( > > What should I do now?? > > Regards, > Soheila > > > On Tue, Mar

Re: [R] Fwd: missing in neural network

2015-03-25 Thread Charles Determan Jr
,1:3110], collapse="+"))) > > Error in colnames(mydata)[, 3111] : incorrect number of dimensions > > Best, > Soheila > > On Wed, Mar 25, 2015 at 11:12 AM, Soheila Khodakarim < > lkhodaka...@gmail.com> wrote: > >> Hi Charles, >> Many thanks for your help

Re: [R] simulation dichotomous data

2014-07-31 Thread Charles Determan Jr
tion between each sample. > i appreciate your help and your time > i did not send this code to R- help because you helped me before to write > it . > > many thanks to you > > Thanoon > -- Dr. Charles Determan, PhD Integrated Biosciences [[alternative HTML versi

Re: [R] simulation dichotomous data

2014-08-01 Thread Charles Determan Jr
Give it a try, you know how to induce correlations now. Just chose which variables to correlate and do it for all of those for each dataset and compare. Regards, Dr. Charles Determan On Thu, Jul 31, 2014 at 9:10 AM, thanoon younis wrote: > Many thanks to you > > firstly : how can i

[R] shiny datatables column filtering plugin

2014-09-02 Thread Charles Determan Jr
Greetings, I am currently exploring some capabilities of the 'Shiny' package. I am currently working with the most recent version of 'shiny' from the rstudio github repository (version - 0.10.1.9006) in order to use the most up to date datatables plugin. Using the ggplot2 diamonds dataset, I can

Re: [R] shiny datatables column filtering plugin

2014-09-03 Thread Charles Determan Jr
guess it is unlikely to > make it work in (the current development version of) shiny. It is not > in the official list of plugins, either: > http://www.datatables.net/extensions/index > > Regards, > Yihui > -- > Yihui Xie > Web: http://yihui.name > > > On Tue, Se

Re: [R] shiny datatables column filtering plugin

2014-09-03 Thread Charles Determan Jr
hat you want, this > may or may not be enough. > > Regards, > Yihui > -- > Yihui Xie > Web: http://yihui.name > > > On Wed, Sep 3, 2014 at 7:12 AM, Charles Determan Jr > wrote: > > Thank you for checking Yihui, on the off chance are you familiar with any > >

Re: [R] Margins to fill matrix

2014-09-11 Thread Charles Determan Jr
/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Dr. Charles Determan, PhD Integrated Biosciences [[alternative HTML version deleted]] ___

Re: [R] How to sum some columns based on their names

2014-10-13 Thread Charles Determan Jr
You can use grep with some basic regex, index your dataframe, and colSums colSums(df[,grep("*6574*|*7584*|*85*", colnames(df))]) colSums(df[,grep("f6574*|f7584*|f85*", colnames(df))]) Regards, Dr. Charles Determan On Mon, Oct 13, 2014 at 7:57 AM, Kuma Raj wrote: > I wa

Re: [R] Using sapply instead of for loop

2014-11-19 Thread Charles Determan Jr
ahindra policy > statement, you may review the policy at > http://www.techmahindra.com/Disclaimer.html externally > http://tim.techmahindra.com/tim/disclaimer.html internally within > TechMahindra. > > ======

Re: [R] Using sapply instead of for loop

2014-11-19 Thread Charles Determan Jr
on the max value set the , stores the error value.array size > ervalue<-array(, c(maxval,maxval,maxval,maxval,maxval,maxval, 2)) # > depdending on the max value set the , stores the error value.array size > erval1<-array(, c(maxval,maxval,maxval,maxval,maxval,maxval, 2)) # > depdend

Re: [R] Using sapply instead of for loop

2014-11-19 Thread Charles Determan Jr
al,maxval,maxval,maxval,maxval,2)) # depdending > on the max value set the , stores the error value.array size > ervalue<-array(, c(maxval,maxval,maxval,maxval,maxval,maxval, 2)) # > depdending on the max value set the , stores the error value.array size > erval1<-array(, c(maxval,maxval,maxval,maxval,maxval,maxval, 2)) # >

Re: [R] Using sapply instead of for loop

2014-11-19 Thread Charles Determan Jr
NA > [2,] NA NA > The ervalue itself loses the values , I think and hence A does not have > it. > > -- > *From:* Charles Determan Jr [deter...@umn.edu] > *Sent:* Wednesday, November 19, 2014 10:04 PM > > *To:* Amit Thombre > *Cc:*

[R] Power of Kruskal-Wallis Test?

2013-07-09 Thread Charles Determan Jr
Greetings, To calculate power for an ANOVA test I know I can use the pwr.anova.test() from the pwr package. Is there a similar function for the nonparamentric equivalent, Kruskal-Wallis? I have been searching but haven't come up with anything. Thanks, -- Charles Determan Integ

Re: [R] Power of Kruskal-Wallis Test?

2013-07-12 Thread Charles Determan Jr
what assumptions you are making to get your power. > > > On Tue, Jul 9, 2013 at 2:18 PM, Charles Determan Jr wrote: > >> Greetings, >> >> To calculate power for an ANOVA test I know I can use the pwr.anova.test() >> from the pwr package. Is there a similar

Re: [R] For loop output

2013-08-08 Thread Charles Determan Jr
ction > software by RBG Kew before transmission, however you should carry out your > own virus checks before opening any attachments. RBG Kew accepts no > liability for any loss or damage which may be caused by software viruses. > > [[alternative HTML version deleted]] > &

Re: [R] Randomization

2013-08-23 Thread Charles Determan Jr
e.html <http://www.R-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > -- Charles Determan Integrated Biosciences PhD Candidate University of Minnesota [[alternative HTML version deleted]]

[R] caTools AUC different between mutli-class and subset binary

2013-08-25 Thread Charles Determan Jr
quot;ROC") > [,1] setosa vs. versicolor 0.9152 Regards, -- Charles Determan Integrated Biosciences PhD Candidate University of Minnesota [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Randomization

2013-08-26 Thread Charles Determan Jr
;> Departamento de Estatística >> Universidade Estadual de Londrina >> Fone: 3371-4346 >> >> __** >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman

[R] Citing Package Contributing Authors

2013-08-26 Thread Charles Determan Jr
proper way to account for them or are they generally not listed? Regards, -- Charles Determan Integrated Biosciences PhD Candidate University of Minnesota [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://st

Re: [R] Citing Package Contributing Authors

2013-08-26 Thread Charles Determan Jr
papers, I often > have to remind authors of this... > > Best > Stephan > > > On 26.08.2013 21:56, Charles Determan Jr wrote: > >> Greetings, >> >> I am familiar with the function cite('packageName') which provides the >> output generated from the

[R] glmnet lambda and number of variables

2013-09-04 Thread Charles Determan Jr
to determine the order with which variables are dropped from the model? Best regards, -- Charles Determan Integrated Biosciences PhD Candidate University of Minnesota [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] how to read data from MSExcel into R

2013-09-11 Thread Charles Determan Jr
ternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, repr

[R] renumber a list of numbers

2013-01-07 Thread Charles Determan Jr
Greetings R users, I am trying to renumber my groups within the file shown below. The groups are currently set as 8,9,10,etc. I would like to renumber this as 1,2,3,etc. I have searched the help files and only come across using the rownames to renumber the values but I need to match values. An

Re: [R] renumber a list of numbers

2013-01-07 Thread Charles Determan Jr
17 17 > 58 25 18 18 > 59 26 19 19 > 60 27 20 20 > 61 28 21 21 > 62 29 22 22 > 63 30 23 23 > > > On Mon, Jan

[R] context of runif()

2013-02-13 Thread Charles Determan Jr
Greetings, I am exploring some random forest analysis methods and have come upon one aspect I don't fully understand from any manual. The code of interest is as follows from the randomForest package: myiris=cbind(iris[1:4], matrix(runif(508*nrow(iris)),nrow(iris),508)) This would be following b

[R] caret pls model statistics

2013-03-02 Thread Charles Determan Jr
Greetings, I have been exploring the use of the caret package to conduct some plsda modeling. Previously, I have come across methods that result in a R2 and Q2 for the model. Using the 'iris' data set, I wanted to see if I could accomplish this with the caret package. I use the following code:

Re: [R] caret pls model statistics

2013-03-02 Thread Charles Determan Jr
ng1=iris[inTrain1,] datvars=training1[,1:4] dat.sc=scale(datvars) pls.dat=plsr(as.numeric(training1$Species)~dat.sc, ncomp=3, method="oscorespls", data=training1) x=crossval(pls.dat, segments=10) summary(x) summary(plsFit2) Regards, Charles On Sat, Mar 2, 2013 at 3:55 PM, Charles De

Re: [R] caret pls model statistics

2013-03-03 Thread Charles Determan Jr
Sat, Mar 2, 2013 at 5:21 PM, Charles Determan Jr wrote: > >> I have discovered on of my errors. The timematrix was unnecessary and an >> unfortunate habit I brought from another package. The following provides >> the same R2 values as it should, however, I still don't know how

Re: [R] caret pls model statistics

2013-03-03 Thread Charles Determan Jr
l. > > However, I don't think that communicating R^2 is effective. Other metrics > (e.g. accuracy, Kappa, area under the ROC curve, etc) are designed to > measure the ability of a model to classify and work well. With 3+ > categories, I tend to use Kappa. > > Max > > >

Re: [R] caret pls model statistics

2013-03-05 Thread Charles Determan Jr
(4), 279–285. > > Traditionally, the symbol 'R' is used for the Pearson correlation > coefficient and one way to calculate R^2 is... R^2. > > Max > > > On Sun, Mar 3, 2013 at 3:16 PM, Charles Determan Jr wrote: > >> I was under the impression that in PLS analysis, R2 was

[R] Multivariate Power Test?

2013-03-06 Thread Charles Determan Jr
Generic question... I am familiar with generic power calculations in R, however a lot of the data I primarily work with is multivariate. Is there any package/function that you would recommend to conduct such power analysis? Any recommendations would be appreciated. Thank you for your time, Char

Re: [R] Multivariate Power Test?

2013-03-07 Thread Charles Determan Jr
10:50 PM, Charles Determan Jr wrote: > > > Generic question... I am familiar with generic power calculations in R, > > however a lot of the data I primarily work with is multivariate. Is > there > > any package/function that you would recommend to conduct such power > > a

Re: [R] Kruskal-Wallis

2013-04-15 Thread Charles Determan Jr
> R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Charles Determan Int

Re: [R] Reading CSV file

2013-04-19 Thread Charles Determan Jr
5 > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html >

Re: [R] Can a column of a list be called?

2013-04-26 Thread Charles Determan Jr
amp;list=PL5BF6ACDCC2E4AAA0&index=7 > > > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/post

[R] topGO printGenes

2013-05-06 Thread Charles Determan Jr
.Ss.egENTREZID' not found Has anyone experienced this or have any thoughts? Regards, -- Charles Determan Integrated Biosciences PhD Student University of Minnesota [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] writing to the screen and extra "0"

2013-07-01 Thread Charles Determan Jr
___ >>> R-help@r-project.org mailing list >>> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help> >>> PLEASE do read the posting guide >>> http://www.R-project.org/**posting-guide.html<http://www.R-project.org/post

[R] Better way of Grouping?

2012-09-28 Thread Charles Determan Jr
Hello R users, This is more of a convenience question that I hope others might find useful if there is a better answer. I work with large datasets that requires multiple parsing stages for different analysis. For example, compare group 3 vs. group 4. A more complicated comparison would be time

Re: [R] Better way of Grouping?

2012-10-01 Thread Charles Determan Jr
> ------- > Sent from my phone. Please excuse my brevity. > > Charles Determan Jr wrote: > > >Hello R users, > > > >This is more of a convenience question that I hope others might find > >u

[R] Adding Time when Blanks

2012-10-12 Thread Charles Determan Jr
Greetings, My data set has dates and times that I am working with. Some of the times in Time_of_end are blank. This is supposed to dictate that the particular experiment lasted 48 hours. I would like to add 48 hours to the start Start_of_Experiment for another column as End_of_Experiment includ

Re: [R] Adding Time when Blanks

2012-10-12 Thread Charles Determan Jr
periment > idx <- dat$Time_of_end != '' > dat$End_of_Experiment <- dat$Start_of_Experiment + 48*60*60 > dat$End_of_Experiment[idx] <- > as.POSIXct(strptime(paste(dat$**Start_date, dat$Time_of_end)[idx], > "%m/%d/%Y %H:%M:%S")) > dat > > > Hope this

[R] loop of quartile groups

2012-10-17 Thread Charles Determan Jr
Greetings R users, My goal is to generate quartile groups of each variable in my data set. I would like each experiment to have its designated group added as a subsequent column. I can accomplish this individually with the following code: brks <- with(data_variables, cut2(var2, g=

[R] cut2 error

2012-10-17 Thread Charles Determan Jr
To R users, I am trying to use cut2 function from the 'Hmisc' library. However, when I try and run the function on the following variable, I get an error message (displayed below). I suspect it is because of the NA but I have no idea how to address the error. Many thanks to any insights. struc

Re: [R] cut2 error

2012-10-17 Thread Charles Determan Jr
99] (97,98] (97,98] (98,99] (98,99] (96,97] (97,98] > #[71] (97,98] (97,98] (98,99] (97,98] (97,98] (97,98] (98,99] > #[78] (97,98] (97,98] > #Levels: (-Inf,96] (96,97] (97,98] (98,99] > A.K. > > > > > - Original Message - > From: Charles De

Re: [R] cut2 error

2012-10-17 Thread Charles Determan Jr
still got the error. Is this something to just ignore and add a component in the loop saying there isn't four groups with that variable? Regards On Wed, Oct 17, 2012 at 3:58 PM, David Winsemius wrote: > > On Oct 17, 2012, at 1:52 PM, Charles Determan Jr wrote: > > Hi A.K. >&g

[R] looping survdiff?

2012-10-18 Thread Charles Determan Jr
Hello, I am trying to set up a loop that can run the survdiff function with the ultimate goal to generate a csv file with the p-values reported. However, whenever I try a loop I get an error such as "invalid type (list) for variable 'survival_data_variables[i]". This is a subset of my data: str

Re: [R] Looping survdiff

2012-10-19 Thread Charles Determan Jr
Thank you for all your responses, I assure you this is not homework. I am a graduate student and my classes are complete. I am trying multiple different ways to analyze data and my lab requests different types of scripts to accomplish various tasks. I am the most computer savy in the lab so it c

[R] Kaplan Meier Post Hoc?

2012-10-24 Thread Charles Determan Jr
This is more of a general question without data. After doing 'survdiff', from the 'survival' package, on strata including four groups (so 4 curves on a Kaplan Meier curve) you get a chi squared p-value whether to reject the null hypothesis or not. Is there a method to followup with pairwise testi

[R] Merge matrices with different column names

2012-10-25 Thread Charles Determan Jr
A general question that I have been pursuing for some time but have set aside. When finishing some analysis, I can have multiple matrices that have specific column names. Ideally, I would like to combine these separate matrices for a final output as a csv file. A generic example: Matrix 1 var1A

Re: [R] Merge matrices with different column names

2012-10-26 Thread Charles Determan Jr
) > m2 <- matrix(rpois(9, 5), nrow = 3, dimnames = list(NULL, paste0("var", > 4:6))) > L <- list(m1, m2) > names(L) <- paste0("matrix", 1:2) > L > > Dennis > > On Thu, Oct 25, 2012 at 8:51 PM, Charles Determan Jr wrote: > >> A genera

Re: [R] simulation data

2014-04-04 Thread Charles Determan Jr
://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Charles Determan Integrated Biosciences PhD Candidate University of Mi

Re: [R] simulation data

2014-04-05 Thread Charles Determan Jr
> an interrelationships between variables) > > regards > thanoon > > > On 4 April 2014 18:42, Charles Determan Jr wrote: > >> Hi Thanoon, >> >> How about this? >> # replicate p=10 times random sampling n=1000 from a vector containing >> your ordinal

Re: [R] simulation data

2014-04-10 Thread Charles Determan Jr
e basics down 2. Try to understand the above code for your problem 3. Find a suitable R package for your specific correlation needs 4. or Learn to write functions and find the means to calculate the tetratorich correlation. Regards, Charles Determan On Wed, Apr 9, 2014 at 8:28 PM, thanoon younis wro

Re: [R] help

2014-04-15 Thread Charles Determan Jr
ia > IC. NO. 201202F10234 > Matric No. PS113113 > HP. No. 00601117517559 > E-mail: kafi_d...@yahoo.com > supervisor- Assoc. Prof. Robiah Binti Adnan > > -- Charles Determan Integrated Biosciences PhD Candidate University of Minnesota [[alternative HTML version d

[R] conditional probability removal

2014-04-17 Thread Charles Determan Jr
Greetings, I would like to randomly remove elements from a numeric vector but with different probabilities for higher numbers. For example: dat <- sample(seq(10), 100, replace=T) # now I would like to say randomly remove elements but with a higher chance of removing elements >= 5 and even great

Re: [R] error in R program

2014-06-05 Thread Charles Determan Jr
Standard Errors > SEu1[t,]<-model$sd$uby1; SElam1[t,]<-model$sd$lam; > SEgam1[t,]<-model$sd$gam1 > SEphx1[t,1]<-model$sd$phx1[1,1]; SEphx1[t,2]<-model$sd$phx1[1,2] > SEphx1[t,3]<-model$sd$phx1[2,2]; SEb1[t]<-model$sd$ubeta1 > SEsgd1[t]<-

[R] Fwd: error in R program

2014-06-05 Thread Charles Determan Jr
-- Forwarded message -- From: thanoon younis Date: Thursday, June 5, 2014 Subject: error in R program To: Charles Determan Jr many thanks to you Dr. Charles Really i have a problem with simulation data in xi and now i have this erro r "Error in mvrnorm(1, c(0, 0, 0),

Re: [R] error in R program

2014-06-07 Thread Charles Determan Jr
uot;Error in mvrnorm(1, c(0, 0, 0), phi1, tol = 1e-06, empirical = > FALSE, : incompatible arguments" > > Regards > > > > > On 5 June 2014 16:45, Charles Determan Jr wrote: > >> Hello again Thanoon, >> >> Once again, you should send these reques

Re: [R] error in R program

2014-06-08 Thread Charles Determan Jr
cannot open the connection > > Could you please give me some advice on how to fix it? > > Many thanks~ > > > On Sat, Jun 7, 2014 at 6:41 AM, Charles Determan Jr > wrote: > >> REPLY TO ALL FOR THE R-HELP LIST!!! >> >> I apologize for the bluntness but yo

[R] reformatting some data

2012-12-04 Thread Charles Determan Jr
Hello, I am trying to reformat some data so that it is organized by group in the columns. The data currently looks like this: group X3.Hydroxybutyrate X3.Hydroxyisovalerate ADP 347 4 4e-04 3e-04 5e-04 353 3 5e-04

Re: [R] Fwd: Calculating group means

2013-12-23 Thread Charles Determan Jr
n/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Charles Determan Integrated Biosciences PhD Candidate University of Minnesota [[alternative HTML version dele

[R] Recycling other internal package functions

2013-09-23 Thread Charles Determan Jr
unction they made without giving them credit. Regards, -- Charles Determan Integrated Biosciences PhD Candidate University of Minnesota [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

Re: [R] Interpreting the result of a Wilcoxon (Mann-Whitney U) test

2013-10-02 Thread Charles Determan Jr
t. Regards, -- Charles Determan Integrated Biosciences PhD Candidate University of Minnesota On Wed, Oct 2, 2013 at 10:33 AM, Filipe Correia wrote: > Hello everyone, > > I'm having some trouble interpreting the results of a Wilcoxon > (Mann-Whitney U) test. Hope you can help. >

  1   2   >