Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Einstiegskurs Kausale Inferenz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Keyser, Johannes
Einstiegskurs Kausale Inferenz
Commits
fcfcb8e0
Commit
fcfcb8e0
authored
3 years ago
by
luebby
Browse files
Options
Downloads
Patches
Plain Diff
Einheit nach letzten Commit wieder gerade ziehen.
parent
9640be8a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Module/Modul_11.Rmd
+6
-7
6 additions, 7 deletions
Module/Modul_11.Rmd
Module/Modul_11_KI.Rmd
+6
-4
6 additions, 4 deletions
Module/Modul_11_KI.Rmd
with
12 additions
and
11 deletions
Module/Modul_11.Rmd
+
6
−
7
View file @
fcfcb8e0
...
...
@@ -52,7 +52,8 @@ LV <- LV %>%
mutate(Geschlecht = case_when(Geschlecht == 0 ~ "w",
Geschlecht == 1 ~ "m"),
RaucherIn = case_when(RaucherIn == 0 ~ "nein",
RaucherIn == 1 ~ "ja"))
RaucherIn == 1 ~ "ja")) %>%
mutate(Groesse = Groesse * 2.54)
p1 <- DiagrammeR::grViz("
...
...
@@ -111,24 +112,22 @@ Vorbereitungen der Analyse mit `R`:
```{r str}
# Paket laden
library(mosaic)
# Daten einlesen
# Daten einlesen
, siehe https://doi.org/10.1080/10691898.2005.11910559
LV <- read.table("http://jse.amstat.org/datasets/fev.dat.txt",
col.names = c("Alter", "Lungenvolumen", "Groesse", "Geschlecht", "RaucherIn"))
# Variablen umkodieren
# Variablen umkodieren
bzw. umrechnen
LV <- LV %>%
mutate(Geschlecht = case_when(Geschlecht == 0 ~ "w",
Geschlecht == 1 ~ "m"),
RaucherIn = case_when(RaucherIn == 0 ~ "nein",
RaucherIn == 1 ~ "ja"))
RaucherIn == 1 ~ "ja")) %>%
mutate(Groesse = Groesse * 2.54)
# Datenstruktur
str(LV)
```
Die Datentabelle `LV` enthält $n=`r nrow(LV)`$ Beobachtungsdaten mit den $`r ncol(LV)`$ Variablen:
mit den Variablen:
- `Alter`: Alter in Jahren
- `Lungenvolumen`: forcierte exspiratorische Volumen in l
- `Groesse`: Größe in cm
...
...
This diff is collapsed.
Click to expand it.
Module/Modul_11_KI.Rmd
+
6
−
4
View file @
fcfcb8e0
...
...
@@ -52,7 +52,8 @@ LV <- LV %>%
mutate(Geschlecht = case_when(Geschlecht == 0 ~ "w",
Geschlecht == 1 ~ "m"),
RaucherIn = case_when(RaucherIn == 0 ~ "nein",
RaucherIn == 1 ~ "ja"))
RaucherIn == 1 ~ "ja")) %>%
mutate(Groesse = Groesse * 2.54)
p1 <- DiagrammeR::grViz("
...
...
@@ -111,15 +112,16 @@ Vorbereitungen der Analyse mit `R`:
```{r str}
# Paket laden
library(mosaic)
# Daten einlesen
# Daten einlesen
, siehe https://doi.org/10.1080/10691898.2005.11910559
LV <- read.table("http://jse.amstat.org/datasets/fev.dat.txt",
col.names = c("Alter", "Lungenvolumen", "Groesse", "Geschlecht", "RaucherIn"))
# Variablen umkodieren
# Variablen umkodieren
und umrechnen
LV <- LV %>%
mutate(Geschlecht = case_when(Geschlecht == 0 ~ "w",
Geschlecht == 1 ~ "m"),
RaucherIn = case_when(RaucherIn == 0 ~ "nein",
RaucherIn == 1 ~ "ja"))
RaucherIn == 1 ~ "ja")) %>%
mutate(Groesse = Groesse * 2.54)
# Datenstruktur
str(LV)
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment