[R] Calculate LC50

2018-02-21 Thread AbouEl-Makarim Aboueissa
Dear All: good morning I need helps with the calculation of the *LC50* from the data below x<-c(0,0.3,0.7,1,4,10) y<-c(100,86,65,51.3,19.2,7.4) yxreg<-lm(y~x) any help will be highly appreciated. with many thanks abou __ *AbouEl-Makarim Aboueissa, PhD* *Professor of

[R] [WORKSHOP] Computational Aspects of Simulation and Inference for Stochastic Processes and the YUIMA Project

2018-02-21 Thread stefano iacus
Computational Aspects of Simulation and Inference for Stochastic Processes and the YUIMA Project This two-day workshop is aimed at presenting the latest results on simulation and inference for stochastic processes and their current and prospect implementation within the YUIMA R package. Dates

[R] Adding a table of contents to html output using the bookdown package

2018-02-21 Thread MacQueen, Don
I am trying to get rmarkdown with bookdown to include a table of contents in html output, and having trouble. Here is an example that I think illustrates the trouble. I have a file "test.Rmd" as follows: [127]% cat test.Rmd --- title: Test Document output: html_document: toc: true --- #

Re: [R] Checking for a proper "stop" statement...

2018-02-21 Thread Duncan Murdoch
On 21/02/2018 4:28 PM, Jonathan Greenberg wrote: Folks: Consider the following two use cases: goodfunction <- function() { stop("Something went wrong..." } # vs. badfunction <- function() { notgood() } Is there a way for me to test if the functions make use of a stop() statement WITHOUT modi

[R] Checking for a proper "stop" statement...

2018-02-21 Thread Jonathan Greenberg
Folks: Consider the following two use cases: goodfunction <- function() { stop("Something went wrong..." } # vs. badfunction <- function() { notgood() } Is there a way for me to test if the functions make use of a stop() statement WITHOUT modifying the stop() output (assume I can't mod the fun

[R] alternative for multiple if_else statements

2018-02-21 Thread Kevin Wamae
Hi, I am having trouble trying to figure out why if_else is behaving the way it is, it may be my code or the way the data is structured. Below is a snapshot of a database am working on and it represents a longitudinal survey of study participants in a trial with weekly follow up. The variable "

Re: [R] Modified Band Depth

2018-02-21 Thread Boris Steipe
If you are talking about the "Supporting Information" - that contains only one small piece of matlab code that looks pretty trivial to translate if necessary. The rest are R scripts. What then is the problem you need to solve? B. > On Feb 21, 2018, at 9:37 AM, JoyMae Gabion > wrote: > > D

[R] Modified Band Depth

2018-02-21 Thread JoyMae Gabion
Dear Ma'am/Sir, This is Joy Mae C. Gabion taking up Masters of Science in Statistics at Mindanao State University – Iligan Institute of Technology (MSU-IIT), Philippines. I’m currently working on my master’s thesis and chose to base it on the paper of Sun et.al (2012) which discussed the exact fa

Re: [R] TreeBUGS - subscript out of bounds

2018-02-21 Thread Eric Berger
Hi Max, Here's an example that will generate that error. Maybe it will point you to your problem. # create a 2x2 matrix > m <- matrix(1:4,nrow=2) # refer to column 3 - which does not exist > m[,3] # Error in m[, 3] : subscript out of bounds HTH, Eric On Wed, Feb 21, 2018 at 4:35 PM, Max Hen

[R] TreeBUGS - subscript out of bounds

2018-02-21 Thread Max Hennig
Dear all,   I've only (very) recently started to use R (so please be easy on me if I may omit to mention relevant information or have overlooked fairly basic steps to solving the problem, since I do not have a lot of experience) because I'm interested in multinomial processing tree modeling with

Re: [R] Specify multiple nested random effects in lme with heteroskedastic variance across group

2018-02-21 Thread Bert Gunter
You should post this on the r-sig-mixed-models list. You are more likely to get a helpful response there. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic s

Re: [R] Take the maximum of every 12 columns

2018-02-21 Thread Miluji Sb
Dear Henrik, This is great - thank you so much! Sincerely, Milu On Tue, Feb 20, 2018 at 10:12 PM, Henrik Bengtsson < henrik.bengts...@gmail.com> wrote: > It looks like OP uses a data.frame, so in order to use matrixStats > (I'm the author) one would have to pay the price to coerce to a matrix