Commit 7c12dd94 authored by Lie-Piang, Anouk's avatar Lie-Piang, Anouk
Browse files

Update ComponentModel_DryMatter.Rmd

parent 07f84e51
--
title: "R Notebook"
title: "Dry matter model"
output:
html_notebook: default
html_document: default
---
# Set WD
```{r}
setwd("C:/ModelsLocal")
```
#Import data
```{r}
......@@ -20,18 +13,15 @@ attach(Component_Data)
#detach(Component_Data)
```
```{r}
#rename variables
```{r}
dm = `Dry matter (%)`
viscosity = log(`Final viscosity (mPa.s)`)
```
## Load libraries
```{r}
library(MASS)
library(tidyverse)
library(ggplot2)
......@@ -44,9 +34,7 @@ library(readxl)
```
# 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