R programming drc package error

0 votes

I'm a new bee to R programming. My problem is, how do I get the standard deviations for each concentration (0,1,5,10,15,20 mg/L) to get displayed on the plot?

Here's my code:

    72 timer LC50
> LC50_72hR<-read.csv(file.choose(),dec=".",sep=" ", header=TRUE)
> LC50_72hR
   Concentration Total Dead
1              0    20    1
2              0    20    1
3              0    20    1
4              1    20    4
5              1    20    2
6              1    20    5
7              5    20    7
8              5    20   11
9              5    20   10
10            10    20   11
11            10    20   16
12            10    20   15
13            15    20   16
14            15    20   18
15            15    20   20
16            20    20   19
17            20    20   20
18            20    20   20
> LC50_72hR<-drm(Dead/Total~Concentration,weights=Total,fct=LL.2(),type="binomial",data=LC50_72hR)
> summary(LC50_72hR)

Model fitted: Log-logistic (ED50 as parameter) with lower limit at 0 and upper limit at 1 (2 parms)

Parameter estimates:

              Estimate Std. Error  t-value p-value
b:(Intercept) -1.40548    0.16443 -8.54734       0
e:(Intercept)  4.09353    0.49499  8.26987       0
> plot(LC50_72hR)
> ED(LC50_72hR,c(10,50,90))

Estimated effective doses

     Estimate Std. Error
1:10  0.85734     0.2242
1:50  4.09353     0.4950
1:90 19.54538     3.2559

How do I put std dev on my plot?

Apr 5, 2019 in Data Analytics by Tyrion anex
• 8,700 points
854 views

1 answer to this question.

0 votes

You need two variables, (x and y). In the regression, you divided dead/total means this is one variable (x) and you have another variable for concentration. This way you can easily plot the SD on your data.

answered Apr 5, 2019 by Sophie may
• 10,620 points

Related Questions In Data Analytics

+3 votes
2 answers

Error: could not find function - R Programming

Yes, Just like @Maverik said, It happens ...READ MORE

answered Aug 23, 2019 in Data Analytics by anonymous
• 33,030 points
33,703 views
0 votes
1 answer

"no applicable method" Error in r programming

This is caused by using an object-oriented ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 52,350 points
2,530 views
+2 votes
1 answer

“subscript out of bounds” Error in r programming

This error is likely to occur when ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 52,350 points
9,563 views
0 votes
1 answer

Error saying "R Error: package ‘lme4’ required by ‘pbkrtest’ could not be found"

Windows 7, revo R 3.2.3 construct a directory ...READ MORE

answered Nov 9, 2018 in Data Analytics by Maverick
• 10,840 points
799 views
+1 vote
1 answer

R programming error

Alright, you can either use gsub to match the ...READ MORE

answered Dec 18, 2018 in Data Analytics by Tyrion anex
• 8,700 points
657 views
+1 vote
1 answer

R Programming: Market Basket Analysis Error

The basket.sorted() has less than 5 rules. Refer ...READ MORE

answered Feb 12, 2019 in Data Analytics by Sophie may
• 10,620 points
1,507 views
+1 vote
1 answer

R Programming: regexpr error

The below code will help: gregexpr("D", x) # [[1]] # ...READ MORE

answered Feb 21, 2019 in Data Analytics by Tyrion anex
• 8,700 points
625 views
+1 vote
1 answer

R programming: Graphs

Try this: ggplot(dfc, aes(x=x, y=y, colour=f, fill=f, ymin=y-se, ...READ MORE

answered Feb 21, 2019 in Data Analytics by Tyrion anex
• 8,700 points
601 views
0 votes
1 answer

R programming: Unexpected symbol error

Format your code this way: myfunction <- function() ...READ MORE

answered Dec 17, 2018 in Data Analytics by Sophie may
• 10,620 points
3,251 views
0 votes
1 answer

R Programming error in 'fert'

You're using a factor: fert <- factor(c(50,20,10,10,20,50)) levels(fert) #[1] ...READ MORE

answered Dec 28, 2018 in Data Analytics by Sophie may
• 10,620 points
722 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP