Why do I get the error "Undefined function 'fitrm' for input arguments of type 'table' " ?
    4 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    lil brain
 el 29 de Abr. de 2022
  
    
    
    
    
    Respondida: Walter Roberson
      
      
 el 29 de Abr. de 2022
            Hi,
I am running into the following error when running the following code:
condition = ...
    ['H' 'H' 'H' 'H' 'H' 'H' 'H' 'H' 'H' 'H' 'H' 'H' 'H' 'H' 'H' 'H' 'H' 'H' ...
    'L' 'L' 'L' 'L' 'L' 'L' 'L' 'L' 'L' 'L' 'L' 'L' 'L' 'L' 'L' 'L' 'L' 'L' ]';
t_rmanova = table(condition,comptable_both_conditions(:,1),...
    comptable_both_conditions(:,2),comptable_both_conditions(:,3),...
    comptable_both_conditions(:,4),comptable_both_conditions(:,5),...
    'VariableNames',{'condition','pre','balls','btw','basket','post'});
Meas = table([1 2 3 4 5]','VariableNames',{'Measurements'});
rm = fitrm(t_rmanova,'pre-post~condition','WithinDesign',Meas);
I get the error:
Undefined function 'fitrm' for input arguments of type 'table'.
Error in Untitled4 (line 14)
rm = fitrm(t_rmanova,'pre-post~condition','WithinDesign',Meas);
I am essentially trying to run a RM ANOVA. Do I need to oinstall a package? Or is there anopther reason Matlab is telling me "undefined" function?
Thanks!
0 comentarios
Respuesta aceptada
  Walter Roberson
      
      
 el 29 de Abr. de 2022
        You need the Statistics toolbox, R2014A or newer.
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Repeated Measures and MANOVA en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

