Displaying 20 results from an estimated 6000 matches similar to: "Aggregate with Function List ?"
2012 Aug 01
3
Neuralnet Error
I require some help in debugging this code
library(neuralnet)
ir<-read.table(file="iris_data.txt",header=TRUE,row.names=NULL)
ir1 <- data.frame(ir[1:100,2:6])
ir2 <- data.frame(ifelse(ir1$Species=="setosa",1,ifelse(ir1$Species=="versicolor",0,"")))
colnames(ir2)<-("Output")
ir3 <- data.frame(rbind(ir1[1:4],ir2))
2012 May 15
6
Curva dosis-respuesta
Buenos dias R-help-es,
Estoy interesado en estimar una curva dosis-respuesta para un conjunto de
datos y para ello, estoy utilizando la libreria "drm". Hasta ahi todo bien.
Me gustaria automatizar algunas cosas y el primer paso para ello es la
estimacion del modelo. Si la estimacion funciona, todo lo demas funciona;
de lo contrario, todo fallara. Tengo algunas lineas que mitigan un
2014 Mar 17
5
LD50
Quiero comparar varias dosis letales 50% (LD50) usando análisis probit. He
seguido un ejemplo que viene en paquete DRC, pero no obtengo el resultado
esperado. Lo que quiero es saber si las LD50s, son diferentes y si la
diferencias son estadísticamente significativas.
Gracias de antemano.
José Arturo
e-mail. jafarfan@uady.mx <grejon@uady.mx>
e-mail alterno. jafarfan@gmail.com
2009 May 20
2
drc results differ for different versions
Hello,
We use drc to fit dose-response curves, recently we discovered that
there are quite different standard error values returned for the same
dataset depending on the drc-version / R-version that was used (not
clear which factor is important)
On R 2.9.0 using drc_1.6-3 we get an IC50 of 1.27447 and a standard
error on the IC50 of 0.43540
Whereas on R 2.7.0 using drc_1.4-2 the IC50 is
2010 Sep 06
1
Prediction and confidence intervals from predict.drc
R-helpers,
I am using the package "drc" to fit a 4 parameter logistic model. When I
use the predict function to get prediction on a new dataset, I am not
getting the requested confidence or prediction intervals. Any idea what
is going on? Here is code to reproduce the problem:
---
library(drc)
# Fit model to existing dataset in package
spinach.model <- drm(SLOPE~DOSE, data =
2009 Mar 22
1
Estimating LC50 from a Weibull distribution
I am attempting to estimate LC50 (analogous to LD50, but uses exposure
concentration rather than dose) by fitting a Weibull model; but I
can't seem to get it to work. From what I can gather, I should be
using survreg() from the survival package. The survreg() function
relies on time-to-event data; my data result from 96 h exposures
(i.e., dead or alive after a fixed period; 96 h). I've
2011 May 27
1
lattice - change background strip color in one panel
Hello,
I would like to change the background color in only -one- of the strips in a
multipanel lattice xyplot, from the default yellow-brown color.
Until now, I only managed to change the background strip color in all of the
strips using the par.settings, but I do not get it to work for only 1 strip.
Below is the current code I am using.
The resulting plot is here:
2007 Jul 12
1
dose-response on a grid
I have the following problem. I have measured a dose response curve
(binary response, continuous dose) on a grid of x,y positions. I would
like to produce a grey-level plot that shows the LD50 at each (x,y)
position.
I am thinking that I have to do something like
fit<-glm(resp ~ x*y + dose, family = binomial)
Corrections welcome.
But from here I don't know how to get LD50, and certainly
2011 Aug 02
2
Help with aggregate syntax for a multi-column function please.
Dear R-experts:
I am using a function called AUC whose arguments are data, time, id, and
dv.
data is the name of the dataframe,
time is the independent variable column name,
id is the subject id and
dv is the dependent variable.
The function computes area under the curve by trapezoidal rule, for each
subject id.
I would like to embed this in aggregate to further subset by each
2010 Jan 22
1
Estimate Slope from Boltzmann Model (package: DRC)
Dear R Community,
I am using the package DRC ( to fit a boltzman model to my data. I
can fit the model and extract the lower limit, upper limit, and ED50
(aka V50), but I cannot figure out how to get the slope of the curve
at ED50. Is there a simple way to do this? I've searched the mailing
list and looked through the package documentation, but could not find
anything. I am new to r, and
2012 Apr 02
7
Calculating NOEL using R and logistic regression - Toxicology
Hello, I used the glm function in R to fit a dose-response relationship and
then have been using dose.p to calculate the LC50, however I would like to
calculate the NOEL (no observed effect level), ie the lowest dose above
which responses start occurring. Does anyone know how to do this?
[[alternative HTML version deleted]]
2018 Mar 23
2
aggregate() naming -- bug or feature
In the examples below, the first loses the name attached by foo(), the second retains names attached by bar(). Is this an intentional difference? I?d prefer that the names be retained in both cases.
foo <- function(x) { c(mean = base::mean(x)) }
bar <- function(x) { c(mean = base::mean(x), sd = stats::sd(x))}
aggregate(iris$Sepal.Length, by = list(iris$Species), FUN = foo)
#>
2010 Oct 15
2
Time vs Concentration Graphs by ID
Hello-- I have a data for small population who took 1 drug at 3 different
doses. I have the actual drug concentrations as well as predicted
concentrations by my model. This is what I'm looking for:
- Time vs Concentration by ID (individual plots), with each subject
occupying 1 plot -- there is to be 9 plots per page (3x3)
- Observed drug concentration is made up of points, and predicted drug
2018 Mar 23
1
aggregate() naming -- bug or feature
On Fri, Mar 23, 2018 at 6:43 PM, Rui Barradas <ruipbarradas at sapo.pt> wrote:
> Hello,
>
> Not exactly an answer but here it goes.
> If you use the formula interface the names will be retained.
Also if you pass named arguments:
aggregate(iris["Sepal.Length"], by = iris["Species"], FUN = foo)
# Species Sepal.Length
# 1 setosa 5.006
# 2
2010 Oct 04
2
Plot for Binomial GLM
Hi i would like to use some graphs or tables to explore the data and make
some sensible guesses of what to expect to see in a glm model to assess if
toxin concentration and sex have a relationship with the kill rate of rats.
But i cant seem to work it out as i have two predictor
variables~help?Thanks.:)
Here's my data.
>
2005 Jul 19
2
Michaelis-menten equation
Dear R users:
I encountered difficulties in michaelis-menten equation. I found
that when I use right model definiens, I got wrong Km vlaue,
and I got right Km value when i use wrong model definiens.
The value of Vd and Vmax are correct in these two models.
#-----right model definiens--------
PKindex<-data.frame(time=c(0,1,2,4,6,8,10,12,16,20,24),
2011 Feb 07
1
Four paramete logistics.
Hi,
I have to do a four point logistics for a dataset. All I have is the
absorbance value for different proteins and need to get the four Point
values. I have no idea where to start.
Any suggestions would be much helpful.
Thanks
Ramya
--
View this message in context: http://r.789695.n4.nabble.com/Four-paramete-logistics-tp3265251p3265251.html
Sent from the R help mailing list archive at
2013 May 21
2
problems with saving plots from loop
Greetings,
I cannot find solution for this problem (I was searching on web, but without
success):
I want to plot dose-response models for one concentration and many responses
(lets say 200) and I don?t want to do it manually.
So I use loop for this:
for (i in mydata[,2:201]){ #first column is concentration
pdf(paste("plot_",i,".pdf",sep = ""))
2005 Dec 05
1
how to save output all together
Dear R users:
I have a problem about catch the value from function.
I have following two functions (part):
sbolus1 <- function()
{
.......
for( i in 1:Subject) {
kel<-par1
Vd<-par2
PKindex<-sbolus1.out(PKtime,kel,Vd,defun,par1,par2,Dose,i)
}
savefile(PKindex)
}
sbolus1.out<-function(PKtime,kel,Vd,defun,par1,par2,Dose,i)
{
time<-PKtime$time
2012 Aug 07
2
Passing arguments to a function within a function ...
Hallo Everybody
How do you specify arguments for a function used within another function?
Here is my problem:
I am reconstructing a calculator for the burden of disease due to air
pollution from publications and tools published by the WHO. The
calculations make use of published dose-response relationships for
particular health end-points. This is then applied to populations with
known or