Commit 812628ad authored by Lie-Piang, Anouk's avatar Lie-Piang, Anouk
Browse files

Update ComponentModel_DryMatter.Rmd

parent 608a86c8
......@@ -4,7 +4,7 @@ output:
html_notebook: default
---
##Import data
#Import data
```{r}
library(readxl)
Component_Data <- read_excel("Component_Data.xlsx",
......@@ -13,14 +13,14 @@ attach(Component_Data)
#detach(Component_Data)
```
##rename variables
#rename variables
```{r}
dm = `Dry matter (%)`
viscosity = log(`Final viscosity (mPa.s)`)
```
## Load libraries
# Load libraries
```{r}
library(MASS)
library(tidyverse)
......@@ -34,7 +34,7 @@ library(readxl)
```
## Create all possible formulas
# Create all possible formulas
```{r}
model= lm(viscosity~ dm, data=Component_Data)
summary(model)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment