one_tm_sun: Frequentist inference for the one thermal mass model (1TM)...

Description Usage Arguments Details Value References Examples

Description

Brief description

Usage

1
2
3
one_tm_sun(data, air = TRUE, init = NULL, tau = 1/12,
  hetero = TRUE, ep = 1e-06, nls_control = NULL,
  gnls_control = NULL, use_gnls = FALSE, ...)

Arguments

data

A dataset in the format of either cwall_east or cwall_north.

air

A logical scalar. Should we use air (TRUE) or surface (FALSE) temperatures?

init

A numeric vector of length 4. Optional initial estimates of the parameters R1, R2, R3 and C1 of the 1TM + Qsun.

tau

A numeric scalar. Time interval between successive measurements, in hours.

ep

A numeric scalar. Lower bound imposed on the (positive) parameters R1, R2 and C1. Passed to the lower argument of nls.

nls_control

An optional list of control settings to be passed to nls.

gnls_control

An optional list of control settings to be passed to gnls.

use_gnls

A logical scalar. In the hetero = FALSE) case should we use gnls to fit the model (use_gnls == TRUE) or nls (use_gnls == FALSE)? This is provided as a means to check that these two functions give equivalent results.

...

Further arguments to be pased to nls.

Details

Add details

Value

An object of class "nls" returned from nls.

References

Gori, V. (2017) A novel method for the estimation of thermophysical properties of walls from short and seasonally independent in-situ surveys. Doctoral thesis. UCL (University College London). http://discovery.ucl.ac.uk/1568418/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
### cwall_east --------

# Constant error variance
fit3 <- one_tm_sun(data = cwall_east, hetero = FALSE)
fit3
logLik(fit3)
plot(fit3, form = resid(., type = "p") ~ fitted(.) | in_out)

# Different error variances for Qin and Qout
fit4 <- one_tm_sun(data = cwall_east)
fit4
plot(fit4, form = resid(., type = "p") ~ fitted(.) | in_out)
logLik(fit4)

paulnorthrop/walls documentation built on May 15, 2019, 10:02 p.m.