Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RMSE to output diagnostics #73

Merged
merged 4 commits into from
Sep 11, 2024
Merged

Add RMSE to output diagnostics #73

merged 4 commits into from
Sep 11, 2024

Conversation

bpbond
Copy link
Member

@bpbond bpbond commented Sep 11, 2024

Per @wilsonsj100 request this PR adds RMSE to the output diagnostics, updating the documentation and introductory vignette to reflect this.

Linear cars data:

> ffi_fit_models(cars$speed, cars$dist)
  HM81_AIC HM81_flux.estimate HM81_p.value HM81_r.squared HM81_RMSE HM81_sigma  lin_AIC lin_flux.estimate lin_flux.std.error
1       NA                 NA           NA             NA        NA         NA 419.1569          3.932409          0.4155128
  lin_int.estimate lin_int.std.error  lin_p.value lin_r.squared lin_RMSE lin_sigma poly_AIC poly_r.squared poly_RMSE  rob_AIC
1        -17.57909           6.75844 1.489836e-12     0.6510794 15.06886  15.37959  419.885      0.6731808   14.5838 419.7356
  rob_converged rob_flux.estimate rob_flux.RMSE rob_flux.std.error rob_sigma
1          TRUE          3.773429      15.15631          0.3892199  13.28595

Nonlinear Puromycin data:

> ffi_compute_fluxes(Puromycin,
+                    group_column = NULL,
+                    time_column = "conc",
+                    gas_column = "rate")

NOTE: HM81_flux.estimate is not NA, implying nonlinear data

       conc HM81_AIC HM81_flux.estimate HM81_p.value HM81_r.squared HM81_RMSE HM81_sigma  lin_AIC lin_flux.estimate
1 0.3121739 200.9997           246.1399 9.406055e-11      0.8696062  16.77997   17.56084 223.7834           105.398
  lin_flux.std.error lin_int.estimate lin_int.std.error  lin_p.value lin_r.squared lin_RMSE lin_sigma poly_AIC poly_r.squared
1            16.9191         96.03154          7.780867 3.525876e-06     0.6488706 27.53571  28.81711  205.746      0.8653059
  poly_RMSE  rob_AIC rob_converged rob_flux.estimate rob_flux.RMSE rob_flux.std.error rob_sigma conc_min conc_max
1  17.05442 223.8119          TRUE          106.2137      27.55276           20.65072  24.79301     0.02      1.1

@bpbond bpbond requested a review from wilsonsj100 September 11, 2024 10:06
@wilsonsj100
Copy link
Collaborator

wilsonsj100 commented Sep 11, 2024 via email

@bpbond bpbond merged commit b596d1b into main Sep 11, 2024
5 checks passed
@bpbond bpbond deleted the rmse branch September 11, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants