RELIABILITY MODELLING : Calculating the shape and scale to Identify the Life of the instrument or Sensor. Here is the thing i was been trying to calculate the shape and scale parameter in group manner with a one go and create and shape and scale parameter for respective grouped criteria i am getting an error Error in summarise_impl(.data, dots) : non-finite value supplied by optim
I know some body has pasted same query but it isnt in a proper form Kindly do guide me on this below is the code and observed error i got .
G= c("P52" ,"P52","P66 - PARK II","P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P82 V3","P82 V3","P82 V3","P52","P52","P66 - PARK II" ,"P66 - PARK II" ,"P82 V3","P66 - PARK II" ,"P66 - PARK II" ,"P82 V3","P82 V3" ,"P88","P88","P88","P52","P82 V3","P66 - PARK II" ,"P66 - PARK II" ,"P82 V3","P52","P88","P88","P52" ,"P88","P82 V3","P88","P82 V3","P82 V3","P82 V3","P88","P88","P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P88","P66 - PARK II" ,"P88" ,"P52","P52","P52","P52","P52","P52","P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II","P88","P82 V3","P82 V3","P88","P88","P66 - PARK II" ,"P66 - PARK II" ,"P52","P52","P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II","P66 - PARK II" ,"P82 V3","P66 - PARK II" ,"P82 V3","P88","P82 V3","P88","P88","P66 - PARK II","P82 V3","P82 V3" ,"P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P82 V3","P88","P88","P82 V3","P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P66 - PARK II" ,"P88" ,"P66 - PARK II" ,"P66 - PARK II","P66 - PARK II" )
GA = c( 170 ,170 ,169 ,135 ,135 ,135 ,331 ,331 ,331 ,136 ,170 ,169 ,169 ,183 ,135 ,135 ,331 ,331 ,431 ,431 ,183 ,170 ,183 ,135 ,135 ,331 ,136 ,94 ,115 ,136 ,154 ,103 ,183 ,114 ,114 ,114 ,183 ,149 ,51
,169 ,169 ,135 ,94 ,136 ,117 ,170 ,170 ,170 ,170 ,170 ,170 ,51 ,169 ,169 ,364 ,183 ,183 ,94 ,364 ,114 ,51 ,113 ,170 ,51 ,169 ,170 ,169 ,169 ,135 ,135 ,135 ,135 ,170 ,103 ,117 ,103 ,10 ,10
,183 ,183 ,111 ,103 ,150 ,137 ,137 ,137 ,10 ,10 ,95 ,103 ,169 ,169 ,170 ,169 ,169 ,169 ,10 ,137 ,137 ,137)
GL = c( 1645 ,1645 ,1645 ,1645 ,1645 ,1645 ,1645 ,1645 ,1645 ,1645 ,1646 ,1646 ,1646 ,1646 ,1646 ,1646 ,1646 ,1646 ,1647 ,1647 ,1647 ,1647 ,1647 ,1647 ,1647 ,1647 ,1647 ,1648 ,1648 ,1648 ,1648
,1649 ,1649 ,1649 ,1649 ,1649 ,1649 ,1649 ,1649 ,1649 ,1649 ,1649 ,1649 ,1650 ,1650 ,1650 ,1650 ,1650 ,1650 ,1650 ,1650 ,1650 ,1650 ,1650 ,1650 ,1650 ,1650 ,1650 ,1650 ,1651 ,1651 ,1651
,1651 ,1651 ,1651 ,1651 ,1651 ,1651 ,1651 ,1651 ,1651 ,1651 ,1651 ,1651 ,1651 ,1651 ,1651 ,1653 ,1653 ,1653 ,1653 ,1653 ,1653 ,1654 ,1654 ,1654 ,1654 ,1654 ,1654 ,1654 ,1654 ,1654 ,1654
,1654 ,1654 ,1654 ,1654 ,1655 ,1655 ,1655)
df=data.frame(G=G,GA=GA,GL=GL)
library(MASS)
library(dplyr)
by_G<- group_by(df,G,GA)
fg1 <- summarise(by_G,
shape=fitdistr(GL, "weibull")$estimate[1],
scale=fitdistr(GL, "weibull")$estimate[2],
n=n())
Observed Error:
Error in summarise_impl(.data, dots) : non-finite value supplied by optim