Posts

Showing posts from September, 2024

Mod 5 matrices

Daniel Tafmizi Dr. Friedman Lis 4370 Module 5 Github:  daniel.R/Work.R/LIS4370Rprog/Mod5.R at main · DanielDataGit/daniel.R (github.com) The provided matrices were singular and non-square. For linear systems, finding an inverse of these types requires a variation of Singular Value Decomposition (SVD), which essentially breaks down a matrix into three parts (the rows, the columns, and its diagonal "time/instance order"). R's matlib library provides the function ginv(), which uses the Moore-Penrose inverse to create a generalized inverse that is useful in solving linear systems. The formula is  A + = V D + U T, where V is an orthogonal row matrix, D+ is the transposed reciprocal of all non-zero values in the diagonal matrix, and UT is the transposed orthogonal column matrix. It is used to calculate an approximate solution to an "unsolvable" linear system. 

Mod 4 prog structures

Image
 Daniel Tafmizi Dr. Friedman Lis 4370 Module 4 Github:  daniel.R/Work.R/LIS4370Rprog/module4.R at main · DanielDataGit/daniel.R (github.com) Based on the boxplots, it seems there is a correlation between higher frequencies and blood pressure to immediate care. The histogram shows that people with less than 100 bp are more likely to see immediate care. 

Mod 3 data.frame

Image
Daniel Tafmizi Dr. Friedman Lis 4370 Module 3 Github:  daniel.R/Work.R/LIS4370Rprog/Mod3.R at main · DanielDataGit/daniel.R (github.com)

Module 2

 Daniel Tafmizi Dr. Friedman Lis 4370 Module 2 GitHub:  daniel.R/Work.R/LIS4370Rprog/Module2.R at main · DanielDataGit/daniel.R (github.com) When run, the following error code is executed,  "e rror in myMean() : object 'assignment' not found". This error is caused because there is no variable defined as assignment. Furthermore, the variable somedata also lacks definition. To call a variable it must be initialized with a value.