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