请教一下大神,我有如图所示的学生在教学软件里面的日志数据,Result中的1表示回答正确,0表示回答错误该如何用R建立这几个变量:
1. 每当某个学生ID连续答对5道题之后,他的下一步回应(event type)是什么?
2. 每当某个学生答错一道题的时候,从他答错(incorrect)以后到下一个回答(correct或者incorrect)之间的平均时间是多少?
3. 最后一个变量用英语表达可能容易理解一些:Proportionof wrong actions where student takes more than N seconds; where you optimize Nby trying {1 s., 2 s., 3 s., 4 s., ... 30s.} and see which value of N isassociated with the highest correctness on the next attempt.
 
不胜感激!