search for: weightdata

Displaying 3 results from an estimated 3 matches for "weightdata".

2012 Jul 12
2
nls question
 Hi:  Using nls how can I increase the numbers of iterations to go beyond 50.  I just want to be able to predict for the last two weeks of the year.  This is what I have:  weight_random <- runif(50,1,24)  weight <- sort(weight_random);weight weightData <- data.frame(weight,week=1:50)                          weightData plot(weight ~ week, weightData) M_model <- nls(weight ~ alpha + beta*exp(gamma*week), weightData,               start = c(alpha = 0.0, beta = 1, gamma = 0.2), trace = TRUE)   ### I get the error below: Error in nls(weight ~ a...
2009 Apr 05
4
predicting values into the future
Hi: I have usually used the GROWTH() excel function to do this but now want to see if I can do this with R. I want to predict values into the future, possibly with the predict.arima Function. I have the following weekly fish weight averages: weight <- c("2.1","2.4","2.8","3.6","4.1","5.2","6.3") week <-
2009 Apr 07
1
extract values from summary
Hi: # How can I extract the 'Forecasts' from the 'summary(predicted)' from the example below? library(forecast) weightData <- data.frame(weight = c(2.1,2.4,2.8,3.6,4.1,5.2,6.3),week= 1:7) weight <- as.numeric(weightData$weight) predicted <- forecast(weight,h=3,level=95) # see the predicted summary(predicted) # I would like to extract the three predicted values and # make a line plot with the 'Point Forec...