[R] Problems bootstrapping multigroup SEM

2014-08-27 Thread Chad Danyluck
Hello, I am having difficulty resolving an error I receive trying to bootstrap a multigroup SEM. The error (below) indicates that the model called to bootSem doesn't contain matrices. This is true, sort of, because I created a list of two covariance matrices for the model to call. All of this

Re: [R] Problems bootstrapping multigroup SEM

2014-09-02 Thread Chad Danyluck
this helps, John --- John Fox, Professor McMaster University Hamilton, Ontario, Canada http://socserv.socsci.mcmaster.ca/jfox/ -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Chad

Re: [R] Problems bootstrapping multigroup SEM

2014-09-05 Thread Chad Danyluck
. Kind regards! Chad On Tue, Sep 2, 2014 at 4:03 PM, John Fox j...@mcmaster.ca wrote: Dear Chad, -Original Message- From: Chad Danyluck [mailto:c.danyl...@gmail.com] Sent: Tuesday, September 02, 2014 3:29 PM To: John Fox Cc: r-help@r-project.org Subject: Re: [R] Problems

[R] Error in quantile.default(resids) : missing values and NaN's not allowed if 'na.rm' is FALSE

2014-09-22 Thread Chad Danyluck
About a year ago I ran some analyses using lmer. The general syntax was: mlm - lmer(var1 ~ (1|dyad) + var2 + var3*var4*var5, na.action=na.exclude); summary(mlm) The model ran fine and I saved the output. I've recently turned back to those analyses, however, the model no longer runs. I get the

Re: [R] Averaging column scores when participants vary in number of observations

2015-02-19 Thread Chad Danyluck
I have a data set that includes the identity of a number of Video Coders who scored participants' behaviors in a video. Every participant was scored once, but some participants were randomly assigned to have their data scored twice so I could calculate inter-rater reliabilities. I have completed

Re: [R] Trouble Clearing Environment

2015-03-18 Thread Chad Danyluck
forums. Duncan Murdoch On 18/03/2015 4:59 PM, Chad Danyluck wrote: I use R Studio (Version 0.98.994 on Mac) and R version 3.1.1 (2014-07-10). I find that whenever I clear my environment the environment does not completely clear, even when I check Include Hidden Objects (the environment

[R] Trouble Clearing Environment

2015-03-18 Thread Chad Danyluck
I use R Studio (Version 0.98.994 on Mac) and R version 3.1.1 (2014-07-10). I find that whenever I clear my environment the environment does not completely clear, even when I check Include Hidden Objects (the environment appears cleared, but I can rerun a section of my syntax and, for example print

[R] Looping Through List of .csv Files to Work with Subsets of the Data

2015-06-08 Thread Chad Danyluck
Hello, I want to subset specific rows of data from 80 .csv files and write those subsets into new .csv files. The data I want to subset starts on a different row for each original .csv file. I've created variables that identify which row the subset should start and end on, but I want to loop

Re: [R] Looping Through List of .csv Files to Work with Subsets of the Data

2015-06-08 Thread Chad Danyluck
-627 Livermore, CA 94550 925-423-1062 On 6/8/15, 2:48 PM, Chad Danyluck c.danyl...@gmail.com wrote: Hello, I want to subset specific rows of data from 80 .csv files and write those subsets into new .csv files. The data I want to subset starts on a different row for each original .csv

[R] Reformatting dataframe for use with icc()

2015-10-09 Thread Chad Danyluck
Hello, I want to determine the inter-rater reliability of ratings made from a random selection of observers and observations. I plan to use the irr package to calculate the ICC, however, my dataframe is not organized in a way that the icc() function can handle. The icc() function works with

[R] NaNs produced running icc()

2015-10-13 Thread Chad Danyluck
Hello, I want to determine the inter-rater reliability of ratings made from a random selection of 11 raters and 71 subjects using the irr package. Each rater was randomly assigned to rater only a handful of subjects. So there will be some cells with NAs for raters who did not rate a particular

Re: [R] Reformatting dataframe for use with icc()

2015-10-13 Thread Chad Danyluck
>> If the 0's are a problem: >> >> > tbl[tbl==0] <- NA >> > print(tbl, na.print=NA) >>rater.id >> observation123 >> 167 >> 24 6 >> 3 24 >> >> &g

[R] Is it possible to extract coefficient '(Intercept)' with an identifier (Group ID)

2016-10-17 Thread Chad Danyluck
Hello, I have a data set with 80 observations (21 groups) on which I have run an MLM (using lme). I want to extract the coefficients for the intercept from my MLM using: coefficients(summary(mig1.mlm))$'(Intercept)' This produces a list of 21 intercepts, one for each group. For another test I