RPubs will retire in June 2027. Your existing documents will stay accessible through December 31, 2031
and Connect Cloud is the recommended home for new publishing. Read the blog post
gravatar

rjerome

R. Jerome Anderson

Recently Published

SEM Model for Quals Question 4
Structural Equation Model using same dataset used for the Rasch analysis. The results were not as I expected - none of the predictor variables predicted income.
251125_Final_SEM_Model_PSYM_790_with_Significance_Shown
This model shows both the CFA and the SEM models ran for Liberia and Monrovia. Statistical significance shown in the 2 SEM models. Note the coding of health ~~ educ in the models. This is Dr. Nolla's fix. Also note the comment that 4 of the regions did not work. The 5th one ran, but not well.
251120_Run of DHS Data on Region not Urban/Rural
The data still prevent the code from running properly, but this works better than using urban/rural.
251119_Same_as_Try_5_but_with_Urban
Cannot run group = "urb_rural". Filtered final_df into 2 groups. Run the code on each group. This is the urban run.
Same as Try 5 but with only Rural observations
Tried group = wi_categorical. See comments about variables having no variance. The filtered urban out and ran on rural only. It sort of worked. See error messages.
251118_PSYM_790_SEM_Project_hopefully
Attempt to predict wealth index w/ SEM. I don't think it worked, but the model ran. It would not run if I used group = "urb_rural".
251117_SEM_Project_Try_2_added_Ordered
Added std.lv and ordered for dichotomous variables. SEM model bombed. Couldn't calculate z values and p values. High correlations among some variables. Will remove and try again.
1st_Try_SEM_with_DHS
Done for PSYM 790
251011_non-equivalent_groups_equate
Tried using equate. Results not good. Need better code.
PSYM_750_Kequate_NEAT_Design
Modified code from 9 Oct Class to use my own data. The data files I generated I kept on my HD and read them into R.
Do251002_Class_Demo
KABC!_from_Kline
KABC1 from Chapter 14 in Kline
Document250925_Test_equating
Dr. Amissah's code for equating
241216_q170a_chi_square
test of q170a to see if the distribution of responses is as expected.
241019_Mair's Code_My_Data_Found_Theta_Code
Found line of code that puts theta in the .csv file
241006_1st_Run_eRm_Package_My_Data_PSYM_801
Use Kaggle Retail Salesperson Data for comparison w/ Winsteps
Dichotomous_Rasch_Transreas
240918_1st_Attempt_Rasch_with_R
Had to remove the 4 person ID columns - position, age, gender, marital_status. The GoF command did not run. Error in mvrnorm(1, betas, Var.betas) : 'Sigma' is not positive definite. I did this w/ code from https://www.youtube.com/watch?v=C-ulJ6u9EWo Dr. Ngo Cong-Lem
More_Chi_Square_20Aug23
Chi_Square_Alpha_v_Numeric
Chi Square Fooling
Lab_3_25July2023
HW_3_14July2023_PSYM570
PSYM570_Lab_1_11July2023
HW_2_10July2023
PSYM_570_HW_7July2023
Text Chapter 9
Mair_IRT_2PL_1st_Try
Quiz_4_DS101_221128_MC
221121_HW_3b_MC_DS101
221112_IC9_RBloggers_DS101_MC
221110_Project_3a_Data_101_MC
221107_Data_Sci_101_Quiz_3
221105_ColSums
Flags of the world
221024_'quiz2_rja
IC7B_221017_DATA_101
Correlation & Dropping 10 Sep 2022
Exploring R before class assignments
Plot
Fooling w/ Plots 10 Sept 2022
Coursera_Inference_Week4_RLAB
Lab3_Hot_Hand
Test_Table_Creation_in_R
Probability & Data - Lab2
201201_Math217_FP_Analysis2
201125_Math217_Last_RLab
See code for filter and subset.
201122_Math217_RLab_Tidyverse
This has code for extracting columns from a larger dataset and pasting the extracted columns in a new dataset. Also note the use of row.names = FALSE. Old code showing simple extraction of columns also in this .Rmd file.
201117_Math217_Exam2_rja
20117_Math217_Exam2_Prep
201114_Math217_Quiz_Chaps_9_10
201109_Math217_HW_Chaps_9_10
201108_Math217_Lab6
201102_Math217_FP_Variabe
201030_Math217_Week8_HW
201025_Math217_Lab7
201017_Math217_Week7_HW
201012_Exam_1_Retry_rja
201008_MATH217_Exam1_rja
201008_Test1_Prep
Has matrix questions as well.
Math_217_Week_5_RLab
Math_217_Week_3_RLab
Lab3 After Class Success!
200922_Redo_Math_217_Lab3
I did this one in html; same result; had to comment out many lines of code, and when I did, I lost tables and bar charts.
Math 217 - Week 3, Lab 3
200918_Help_with_Yvonne
Math 217 - Week 3, Quiz 2
200915_Yvonne_Help_w_Reading_Using_CSV
Based on 1st 2 homework assignments in Math 215
Math 217 - Week 2 Homework
Math 217 - Week 2 Lab 2
Week 1 Homework - Lab 1
Math 217_Week1_Lab1
200709_DS110_Final_Project
Draft 1
Means of Wealth and Education
t-Tests_final_project_DS110
Week_4_.Rmd_file
Regression_on_Full_Dataset
Regression_on_175_Cases
Got Resample to Work
Week_4_Nations_Assignment
Week_5_Project_Try_1
Week 4 .Rmd -- Up to Tableau
DS110_Week_3_Project
Code_4_Mutate_Write
Measles plot
Hate Crimes Tutorial
I did it!!!
200614_Markdown_Assignment_rja_Try_5
This one w/ help from Professor Saidi
200614_2nd_Try_Publishing_Markdown
The 1st time I did the Sunday exercise I did it in the console. There is no knit command in the console (that I know of). So I ran it again in the editor. I knitted both so you can see both.
200614_Code
200614_Plot_5
200614_Plot_4
200614_Plot_3
200614_Plot_2
1st_Plot_200614
Plot
First working code in R