similar to: Confidence intervals nls

Displaying 20 results from an estimated 3000 matches similar to: "Confidence intervals nls"

2005 Oct 06
5
Interpolation in time
Can anybody help me write a code on the following data example, which fills out all NA values by using a linear interpolation with the two closest values? Doy is day of year (%j). Code example: yr<-c(rep(2000,14)) doy<-c(16:29) dat<-c(3.2,NA,NA,NA,NA,NA,NA,5.1,NA,NA,NA,NA,NA,4.6) ta<-cbind(yr,doy,dat) ta yr doy dat [1,] 2000 16 3.2 [2,] 2000 17 NA [3,] 2000 18 NA
2005 Sep 12
2
barplot with multiple columns
I have a large dataset looking like this (as an example): doy<-c(178,179,180,181,182,183,184,185,186,187,188) s1<-c(0 , 0, 2.4 , 0 , 3.34 , 0 , 5.34 , 0 , 0 , 0 , 6.9) s2<-c(0 , 9.72, 0, 10.56 , 2.67 , 0 , 6.45 ,0 , 0 , 9, 3.6) dat<-cbind(doy,s1,s2) dat I need to make a barplot where the two time series s1 and s2 are plottet beside each other for each doy. How can I do that?
2004 Oct 26
1
2nd Y-axis text problem
Dear All, I'm having problems getting text to appear on a second y axis....because this can only be done within a plot statement and my attempts to add the label as text didn't work because the "locator" refers to the plot area.... Any thoughts greatly appreciated. Thanks in advance, Sion >par(mai=c(1,1,1,1.5)) >plot(time[DOY<230],Hmeas[DOY <
2011 Oct 17
2
how to use 'which' inside of 'apply'?
Hello R-community, I am trying to populate a column (doy) in a large dataset with the first column number that exceeds the value in another column (thold) using the 'apply' function. Sample data: pt D1 D17 D33 D49 D65 D81 D97 D113 D129 D145 D161 D177 D193 D209 D225 D241 D257 1 39177 0 0 0 0 0 0 0 0 0.4336 0.4754 0.5340667 0.5927334 0.6514 0.6966
2010 Aug 27
3
interpreting date-related error message
Hello, helpeRs, I have a vector of numbers from 1-365 (days of the year) that I would like to convert to a date. There are no NA's and no missing values. I did not insert leading zero's for numbers less than 100. Using the syntax: dat$doy.1 <- as.numeric(format(dat$doy, "%j" )) I get the following error message: Error in prettyNum(.Internal(format(x, trim, digits,
2012 Mar 29
1
Error: argument of length 0
Problem: I keep getting: "Error in (index - 9):index : argument of length 0" when I run this code in an automated loop, but when I step through it by hand, I have no problems. It keep crashing when i<-10. I cannot figure this out to save my life! Please help and THANK YOU in advance! variables: FM100 is a matrix of columns: year, day (all years set to 366 days), region 1, region
2012 Nov 05
1
Post hoc tests in gam (mgcv)
Hi. I'm analysing some fish biological traits with a gam in mgcv. After several tries, I got this model log(tle) = sexcolor + s(doy, bs = "cc", by = sexcolor) +log(tl) sexcolor is a factor with 4 levels doy is "day of year", which is modeled as a smoother tl is "total length of the fish" The summary of this models is (only parametric coefficientes): Parametric
2024 Jun 15
1
code for year month day hr format
?s 20:00 de 15/06/2024, Jibrin Alhassan escreveu: > I have solar-geophysical data e.g as blow: > YEAR DOY HR IMF SW SSN Dst f10.7 > 2012 214 0 3.4 403. 132 -9 154.6 > 2012 214 1 3.7 388. 132 -10 154.6 > 2012 214 2 3.7 383. 132 -10 154.6 > 2012 214 3 3.7 391. 132 -9 154.6 > 2012 214 4 4.2 399. 132 -7 154.6 > 2012 214 5 4.1 411.
2024 Jun 15
2
code for year month day hr format
Thank you Rui. I ran the following script df1 <- read.table("solar_hour", header = TRUE) df1$date <- as.Date(paste(df1$year, df1$hour), format = "%Y %j", origin = "2012-08-01-0") df2 <- df1[c("date", "IMF", "SWS", "SSN", "Dst", "f10")] head(df1) #To display all the rows print(df2). It gave me this
2005 Sep 04
1
time series graphs
About time series graphs, I need help to move on: A time series of data directly from a data logger comes in the dat format created below: year<-c(rep(2005,10)) doy<-c(rep(173,5),rep(174,5)) time<-c(15,30,45,100,115,15,30,45,100,115) dat1<-c(0.022128,0.035036,0.051632,0.071916,0.081136,0.07837,0.083902,0. 126314,0.080214,0.117094) dat2<-
2012 Nov 01
2
Name assignment in for loop
Dear helpeRs- I'm using a for loop to create a series of models. I'm trying to assign a name to each model created, using the loop index. The loop gets stuck at the name of the model, giving the error "target of assignment expands to non-language object". The linear model runs without error; only the name is problematic. Here is the current loop syntax. The use of dat
2014 Sep 10
3
Manejo de imágenes con R
Hola, buen día. Una consulta, no sé conozco en extenso todas las bondades de R, pero quería saber exactamente si hay algún paquete que permita realizar análisis ecológicos específicamente para comunidades marinas. Existen muchos índices, indicadores, estimadores en general en muchos programas que están a nivel de usuario, pero quería saber si todos estos pueden estar ya disponibles en R.
2018 Nov 08
4
Visualizar grandes volumenes de datos
Buenas, He probado a intentar graficar mas de 700.000 puntos y es una locura. No doy con una libreria que consiga graficar grandes volumenes de datos. ?Existe alguna en R? Gracias Jes?s [[alternative HTML version deleted]]
2024 Jun 15
2
code for year month day hr format
I have solar-geophysical data e.g as blow: YEAR DOY HR IMF SW SSN Dst f10.7 2012 214 0 3.4 403. 132 -9 154.6 2012 214 1 3.7 388. 132 -10 154.6 2012 214 2 3.7 383. 132 -10 154.6 2012 214 3 3.7 391. 132 -9 154.6 2012 214 4 4.2 399. 132 -7 154.6 2012 214 5 4.1 411. 132 -6 154.6 2012 214 6 4.0 407. 132 -6 154.6 2012 214 7 4.2 404. 132 -4
2010 Oct 30
3
matrices
Hola a todos, les consulto algo fácil, pero no me doy cuenta. Estoy siguiendo un ejemplo de un libro, pero no llego al resultado con R. Lo escribo el problema en Word para usar el editor de ecuaciones, porque es tan sencillo que mi error es increíble. El código en R son solo 3 renglones. Javier ------------ próxima parte ------------ Se ha borrado un adjunto en formato HTML...
2024 Jun 16
2
code for year month day hr format
?s 21:42 de 15/06/2024, Jibrin Alhassan escreveu: > Thank you Rui. I ran the following script > df1 <- read.table("solar_hour", header = TRUE) > df1$date <- as.Date(paste(df1$year, df1$hour), > format = "%Y %j", > origin = "2012-08-01-0") > df2 <- df1[c("date", "IMF", "SWS", "SSN", "Dst",
2008 May 21
3
Converting a 'difftime' to integer - How to???
I want to find the DOY (Day of Year) of some dates. I think to substract the date 1. January from the data to achive this. Something like: > d <- as.Date("2006-03-13") - as.Date("2006-01-01") +1 > d Time difference of 72 days So far so good. But d is a 'difftime' object. How do I get an Integer value from that? I tried severel things, incuding the
2009 Jan 04
1
POSIXct and chron issues with tz
Dear All- I am trying to merge two data files - they have different date formats and different times zones. I need to match up the date/time of the datasets and then invoke a conditional statement, such as: if dataC$mph is >= 12 then keep dataM$co23 for the corresponding time/date stamp. snippets of data files: *dataC.txt* LST in mph Deg DegF DegF2 % volts Deg
2017 Jan 24
3
Convertir programa Matlab a R sacado de Threshold Models of Collective Behavior de Michèle Lai & Yann Poltera
Estimados Usuarios-R: Estoy convirtiendo un programa en Matlab a R. El original lo saqu de: Lai, M., & Poltera, Y. (2009). Lecture with computer exercises: Modelling and simulating social systems with matlab. Tech. rep., Swiss Federal Institute of Technology (December 2009). 27. Ahora estoy convirtiendo la siguiente funcin: function sizes = gridsizes(N,varargin) % gridsizes(N) calculates
2012 Jun 08
3
day of the year for chron objects
Hi! Is not there an standard R function to retrieve the day of the year (since 1st Jan of the same year)? I know I can make my own using julian, but find it weird that having days(), months() etc doy() does not exist as an standard function. Also, is the following not a bit inconsistent? > a <- chron("20100506",format="ymd") > a [1] 100506 > years(a) [1] 2010