Publications by ANDI XU

Assignment 5

10.12.2024

# Install and load necessary packages library(EFA.dimensions) ## ************************************************************************************************** ## EFA.dimensions 0.1.8.4 ## ## Please contact Brian O'Connor at brian.oconnor@ubc.ca if you have questions or suggestions. ## ****************************************************...

56 sym R (28658 sym/46 pcs) 5 img 2 tbl

Document

21.10.2024

# Load necessary libraries library(ltm) ## 载入需要的程辑包:MASS ## 载入需要的程辑包:msm ## 载入需要的程辑包:polycor library(mirt) ## 载入需要的程辑包:stats4 ## 载入需要的程辑包:lattice ## ## 载入程辑包:'mirt' ## The following object is masked from 'package:ltm': ## ## Science # Loa...

65 sym R (40976 sym/54 pcs) 4 img

Discussion2

07.05.2024

title: “DISCUSSION_2” author: “ANDI XU” date: “2024-03-24” output: pdf_document: default html_document: default — Q1 prior <- c( 0.35, 0.2, 0.45 ) # marginal probabilities given in the question stored in a vector likelihood <- c( 0.25, 0.7, 0.05 ) # conditional probabilities vector stored in a vector posterior <- prior...

201 sym R (6627 sym/77 pcs) 1 img

Discussion7D

02.05.2024

I. LOGISTIC data(mtcars) head(mtcars) ## mpg cyl disp hp drat wt qsec vs am gear carb ## Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4 ## Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4 ## Datsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1 ## Hornet 4 Drive ...

2930 sym

Discussion7C

01.05.2024

Find a dataset and run a multivariate regression in R(have at-least 2 independant variables). Make sure to type out the estimating equation with subscripts, and provide summary statistics of the dataset and present the final regression with stargazer package (you can try and present a few different specifications). library(stargazer) ## ## P...

4331 sym R (5973 sym/17 pcs) 3 img

Discussion_7A

28.04.2024

1 Do a few Google searches and tell us what is correlation (5 lines max). #Correlation is a statistical concept that measures the degree to which two or more variables tend to fluctuate together. A positive correlation indicates that both variables tend to increase or decrease in tandem, while a negative correlation signifies that one variable ...

2166 sym R (11455 sym/16 pcs) 3 img

Discussion7B

28.04.2024

# 1 library(readr) setwd("C:/Users/user/Downloads/week12") MData <- read.csv("jordan_playoffs.csv") # Downloading M Data # Lebron Regular Season Data LData <- read.csv("lebron_playoffs.csv") # Downloading L Data Merged = merge(x = MData, y = LData, by = c("trb")) head(Merged) ## trb game.x date.x series.x s...

16 sym R (8278 sym/13 pcs)

Document

23.04.2024

#Ho (mu = 109): Mean number of hours to obtain the driving license with the CAI is equal to the mean number of hours to obtain the driving license with traditional method (109). #Ha (mu != 109): Mean number of hours to obtain the driving license with the CAI is NOT equal to the mean number of hours to obtain the driving license with traditional m...

4426 sym Python (10514 sym/73 pcs)

Discussion-5

22.04.2024

1 Please Google and describe Law of Large Numbers in your own words. #The Law of Large Numbers is basically the idea that the more you observe something, the closer you get to seeing what you expect. If you keep flipping a coin, you’ll see that the number of heads and tails you get will get closer and closer to 50% each as you keep flipping. ...

3891 sym Python (5123 sym/16 pcs) 3 img

Document

14.04.2024

1.1 In 1986, the Challenger space shuttle exploded during “throttle up” due to catastrophic failure of o-rings (seals) around the rocket booster. The data (real) on all space shuttle launches prior to the Challenger disaster are in the file challenger.csv. #The data folder contains the same data in 3 different formats - import any as it is ...

4900 sym R (7417 sym/52 pcs) 2 img