From 5bd924829cfc60000dbd50f7d5173c0d1003a98e Mon Sep 17 00:00:00 2001 From: Christopher Lux Date: Mon, 10 Jun 2024 14:20:51 +0200 Subject: [PATCH] added data for Documentation --- docs/GeneralisedLinearModels.fsx | 5 +++-- docs/data/cheese.csv | 31 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 docs/data/cheese.csv diff --git a/docs/GeneralisedLinearModels.fsx b/docs/GeneralisedLinearModels.fsx index 6ef0021f..218147e1 100644 --- a/docs/GeneralisedLinearModels.fsx +++ b/docs/GeneralisedLinearModels.fsx @@ -82,12 +82,13 @@ In the context of programming, this equation could be implemented in a variety o ## Loading the Dataset First, let's read some data to learn how to utilize Generalized Linear Models (GLMs). Below is the code to read the cheeseDataset, which is sourced from David S. Moore and George P. McCabe's "Introduction to the Practice of Statistics" (1993), second edition, published by W. H. Freeman and Company, available on the [Statlib database](https://dasl.datadescription.com). It contains information on the taste and concentration of various chemical components in 30 matured cheddar cheeses from the LaTrobe Valley in Victoria, Australia. The final Taste score is an aggregate of the scores given by several tasters. *) + +open Deedle open Plotly.NET open FSharp.Stats -open Deedle let cheeseDataset :Frame= - Frame.ReadCsv "/Users/lux/Library/CloudStorage/OneDrive-ComputationalSystemsBiology/Projects/GeneralLinearModel/data/cheese.csv" + Frame.ReadCsv $"{__SOURCE_DIRECTORY__}/data/cheese.csv" |> Frame.indexRows "Column1" (***include-value:cheeseDataset***) diff --git a/docs/data/cheese.csv b/docs/data/cheese.csv new file mode 100644 index 00000000..db7ef58d --- /dev/null +++ b/docs/data/cheese.csv @@ -0,0 +1,31 @@ +"","Taste","Acetic","H2S","Lactic" +"1",12.3,94,23,0.86 +"2",20.9,174,155,1.53 +"3",39,214,230,1.57 +"4",47.9,317,1801,1.81 +"5",5.6,106,45,0.99 +"6",25.9,298,2000,1.09 +"7",37.3,362,6161,1.29 +"8",21.9,436,2881,1.78 +"9",18.1,134,47,1.29 +"10",21,189,65,1.58 +"11",34.9,311,465,1.68 +"12",57.2,630,2719,1.9 +"13",0.7,88,20,1.06 +"14",25.9,188,140,1.3 +"15",54.9,469,856,1.52 +"16",40.9,581,14589,1.74 +"17",15.9,120,50,1.16 +"18",6.4,224,110,1.49 +"19",18,190,480,1.63 +"20",38.9,230,8639,1.99 +"21",14,96,141,1.15 +"22",15.2,200,185,1.33 +"23",32,234,10322,1.44 +"24",56.7,349,26876,2.01 +"25",16.8,214,39,1.31 +"26",11.6,421,25,1.46 +"27",26.5,638,1056,1.72 +"28",0.7,206,50,1.25 +"29",13.4,331,800,1.08 +"30",5.5,481,120,1.25